UCA-1: find customers update
This commit is contained in:
@@ -98,7 +98,6 @@ public class StartPOS {
|
||||
|
||||
String hostname = config.getProperty("machine.hostname");
|
||||
TicketInfo.setHostname(hostname);
|
||||
applicationStarted(hostname);
|
||||
|
||||
String screenmode = config.getProperty("machine.screenmode");
|
||||
|
||||
@@ -106,6 +105,8 @@ public class StartPOS {
|
||||
JRootKiosk rootkiosk = new JRootKiosk();
|
||||
try {
|
||||
rootkiosk.initFrame(config);
|
||||
applicationStarted(hostname, rootkiosk.getRootapp());
|
||||
|
||||
} catch (IOException ex) {
|
||||
log.error(ex.getMessage());
|
||||
}
|
||||
@@ -113,13 +114,14 @@ public class StartPOS {
|
||||
JRootFrame rootframe = new JRootFrame();
|
||||
try {
|
||||
rootframe.initFrame(config);
|
||||
applicationStarted(hostname, rootframe.getRootapp());
|
||||
} catch (Exception ex) {
|
||||
log.error(ex.getMessage());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
private static void applicationStarted(String host) {
|
||||
private static void applicationStarted(String host, JRootApp jRootApp) {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
Metrics metrics = new Metrics();
|
||||
|
||||
Reference in New Issue
Block a user