make the list synchronized

This commit is contained in:
Armin Schrenk
2025-02-13 11:06:48 +01:00
parent db96074119
commit 5a97060fac

View File

@@ -134,7 +134,7 @@ public abstract class CommonsModule {
@Provides
@Singleton
static ObservableList<Event> provideAppEventQueue() {
return FXCollections.observableArrayList();
return FXCollections.synchronizedObservableList(FXCollections.observableArrayList());
}
private static void handleUncaughtExceptionInBackgroundThread(Thread thread, Throwable throwable) {