This commit is contained in:
Kovid Goyal 2015-11-17 23:48:00 +05:30
parent 1b086443ca
commit 271be4e9bd

View File

@ -293,7 +293,7 @@ class Worker(object):
except CompileFailure as e:
self.log.error(e.message)
time.sleep(0.1 * self.retry_count)
if self.retry_count < MAX_RETRIES:
if self.retry_count < MAX_RETRIES and self.wakeup is not None:
self.wakeup() # Force a restart
return