Skip to content

Commit 6692af8

Browse files
committed
Dispose context before shutting down
Calling System.exit is generally something we try to avoid. Disposing the context beforehand is kinder and avoids some problems such as deadlocking during frame disposal.
1 parent 9156255 commit 6692af8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ private void switchToNewLauncher() {
394394
return;
395395
}
396396
// New process seems to be up and running; we are done. Whew!
397+
appService.getContext().dispose();
397398
System.exit(0);
398399
}
399400
catch (IOException | InterruptedException exc) {

0 commit comments

Comments
 (0)