2
0

Cleanup and fix some warnings.

This commit is contained in:
Maarten Billemont
2018-07-18 15:46:06 -04:00
parent 596ace51ea
commit 3403449ca2
8 changed files with 47 additions and 44 deletions

View File

@@ -47,7 +47,7 @@ public class GUI {
public static void main(final String... args) {
Thread.setDefaultUncaughtExceptionHandler(
(t, e) -> logger.err( e, "Uncaught: %s", e.getLocalizedMessage() ) );
(t, e) -> logger.bug( e, "Uncaught: %s", e.getLocalizedMessage() ) );
if (Config.get().checkForUpdates())
checkUpdate();

View File

@@ -33,7 +33,7 @@ public class SwingExecutorService extends AbstractExecutorService {
synchronized (pendingCommands) {
if (pendingCommands.isEmpty())
terminated.offer( true );
terminated.add( true );
}
}
@@ -85,7 +85,7 @@ public class SwingExecutorService extends AbstractExecutorService {
pendingCommands.remove( command );
if (shutdown && pendingCommands.isEmpty())
terminated.offer( true );
terminated.add( true );
}
}
}