Skip to content

Commit 106c8a6

Browse files
committed
Apply the blocker error fix
1 parent 47bcf75 commit 106c8a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/build_worker/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
from mypy import util
3232
from mypy.build import (
33+
ACK_MESSAGE,
3334
GRAPH_MESSAGE,
3435
SCC,
3536
SCC_REQUEST_MESSAGE,
@@ -201,7 +202,8 @@ def serve(server: IPCServer, ctx: ServerContext) -> None:
201202
meta_files.append(meta_file)
202203
send(server, SccResponseMessage(scc_id=scc_id, is_interface=True, result=mod_results))
203204
# Only proceed with the implementations if there are no blockers so far.
204-
AckMessage.read(receive(server))
205+
if should_shutdown(receive(server), ACK_MESSAGE):
206+
break
205207
try:
206208
result = process_stale_scc_implementation(graph, stale, manager, meta_files)
207209
# Both phases write cache, so we should commit here as well.

0 commit comments

Comments
 (0)