IOTBTOOL-333: Fix SimpleQueue build failure on py3

Build system was using an internal feature of the Pool class that is unavailable
in a py3 system. This would cause an exception if tool execution failed.
Offending code has now been removed
pull/11823/head
Mark Edgeworth 2019-11-06 12:02:16 +00:00
parent 3254ec3cae
commit a8fbd59b05
1 changed files with 1 additions and 3 deletions

View File

@ -556,9 +556,7 @@ class mbedToolchain:
])
objects.append(result['object'])
except ToolException as err:
if p._taskqueue.queue:
p._taskqueue.queue.clear()
sleep(0.5)
# Stop the worker processes immediately without completing outstanding work
p.terminate()
p.join()
raise ToolException(err)