Skip to content

Commit 44c5834

Browse files
Fix hang on exception
1 parent a766b4b commit 44c5834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ def printer():
293293
# There's no concern of deadlocking during shutdown here.
294294
os._exit(1)
295295
finally:
296-
executor.shutdown()
296+
executor.shutdown(cancel_futures=True)
297297

298-
output_queue.shutdown()
299-
printing_thread.join()
298+
output_queue.shutdown()
299+
printing_thread.join()
300300

301301

302302
def run_validator_tests():

0 commit comments

Comments
 (0)