We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f6f916 commit 74518c5Copy full SHA for 74518c5
src/main/java/org/scijava/thread/DefaultThreadService.java
@@ -192,8 +192,8 @@ public Thread newThread(final Runnable r) {
192
// NB: Use daemon threads for the thread pool, so that idling threads do
193
// not prevent the JVM shutdown sequence from starting. The application
194
// context, and therefore the thread service, will try to dispose itself
195
- // upon JVM shutdown, which will invoke executor.shutdown(), so there
196
- // will be a chance for these threads to complete any pending work.
+ // upon JVM shutdown, which will invoke executor.awaitTermination(), so
+ // there will be a chance for these threads to complete any pending work.
197
thread.setDaemon(true);
198
return thread;
199
}
0 commit comments