Skip to content

Commit

Permalink
Dispose context before shutting down
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hinerm committed Feb 7, 2025
1 parent 9156255 commit 6692af8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ private void switchToNewLauncher() {
return;
}
// New process seems to be up and running; we are done. Whew!
appService.getContext().dispose();
System.exit(0);
}
catch (IOException | InterruptedException exc) {
Expand Down

1 comment on commit 6692af8

@imagesc-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-friends-weekly-dev-update-thread/103718/59

Please sign in to comment.