Skip to content

Commit 0d26be4

Browse files
authored
Merge pull request #11823 from mark-edgeworth/fix-simplequeue
IOTBTOOL-333: Fix SimpleQueue build failure on py3
2 parents 9d4bd44 + a8fbd59 commit 0d26be4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/toolchains/mbed_toolchain.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ def compile_queue(self, queue, objects):
556556
])
557557
objects.append(result['object'])
558558
except ToolException as err:
559-
if p._taskqueue.queue:
560-
p._taskqueue.queue.clear()
561-
sleep(0.5)
559+
# Stop the worker processes immediately without completing outstanding work
562560
p.terminate()
563561
p.join()
564562
raise ToolException(err)

0 commit comments

Comments
 (0)