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 4880ca1 commit 0822952Copy full SHA for 0822952
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java
@@ -877,7 +877,7 @@ private void shutdownThreads() {
877
// the threading module above. So we just interrupt them. Their exit is handled
878
// in the acquireGil function, which will be interrupted for these threads
879
disposeThread(thread);
880
- for (int i = 0; i < 100; i++) {
+ for (int i = 0; i < 100 && thread.isAlive(); i++) {
881
thread.interrupt();
882
thread.join(2);
883
}
0 commit comments