forked from j62/ctbrec
1
0
Fork 0

Run registerAlertSystem in a thread

This commit is contained in:
0xboobface 2018-12-10 17:57:12 +01:00
parent deed010a3f
commit 04382dfa6e
1 changed files with 15 additions and 13 deletions

View File

@ -207,6 +207,7 @@ public class CamrecApplication extends Application {
} }
private void registerAlertSystem() { private void registerAlertSystem() {
new Thread(() -> {
try { try {
// don't register before 1 minute has passed, because directly after // don't register before 1 minute has passed, because directly after
// the start of ctbrec, an event for every online model would be fired, // the start of ctbrec, an event for every online model would be fired,
@ -222,6 +223,7 @@ public class CamrecApplication extends Application {
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
}).start();
} }
private void writeColorSchemeStyleSheet(Stage primaryStage) { private void writeColorSchemeStyleSheet(Stage primaryStage) {