Skip to content

Commit 938ef9b

Browse files
committed
Fixed bug that thread is not daemon thread will keep SWT application
process unterminated
1 parent f67e181 commit 938ef9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sources/net.sf.j2s.ajax/ajaxcore/net/sf/j2s/ajax/SimpleThreadHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public static void runTask(Runnable r, String name) {
2626
}
2727
}
2828
Thread thread = new Thread(r, name);
29+
thread.setDaemon(true);
2930
thread.start();
3031
}
3132

0 commit comments

Comments
 (0)