changed check to avoid OS X broken sem_getvalue()

fixes #11988
pull/4420/head
Brian Coca 2015-08-18 03:46:20 -04:00
parent ab355218a0
commit 2198f48f54
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class ResultProcess(multiprocessing.Process):
self._cur_worker = 0
try:
if rslt_q.qsize() > 0:
if not rslt_q.empty():
debug("worker %d has data to read" % self._cur_worker)
result = rslt_q.get()
debug("got a result from worker %d: %s" % (self._cur_worker, result))