Skip to content

Commit 74518c5

Browse files
committed
DefaultThreadService: fix comment
1 parent 0f6f916 commit 74518c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scijava/thread/DefaultThreadService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ public Thread newThread(final Runnable r) {
192192
// NB: Use daemon threads for the thread pool, so that idling threads do
193193
// not prevent the JVM shutdown sequence from starting. The application
194194
// 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.
195+
// upon JVM shutdown, which will invoke executor.awaitTermination(), so
196+
// there will be a chance for these threads to complete any pending work.
197197
thread.setDaemon(true);
198198
return thread;
199199
}

0 commit comments

Comments
 (0)