Skip to content

Commit 50dc43a

Browse files
committed
Do not crash on early blocker
1 parent 7ea4657 commit 50dc43a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mypy/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ def connect(wc: WorkerClient, data: bytes) -> None:
445445
finally:
446446
# In case of an early crash it is better to wait for workers to become ready, and
447447
# shut them down cleanly. Otherwise, they will linger until connection timeout.
448-
if options_data is not None:
449-
os.unlink(options_data)
450448
for thread in connect_threads:
451449
thread.join()
450+
if options_data is not None:
451+
os.unlink(options_data)
452452
for worker in workers:
453453
if not worker.connected:
454454
continue

0 commit comments

Comments
 (0)