Explorar el Código

Fix a regression, context is not defined unless detach is true.

Ask Solem hace 16 años
padre
commit
11150f6c5b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/bin/celeryd.py

+ 1 - 1
celery/bin/celeryd.py

@@ -226,7 +226,7 @@ def run_worker(concurrency=DAEMON_CONCURRENCY, detach=False,
         emergency_error(logfile, "celeryd raised exception %s: %s\n%s" % (
                             e.__class__, e, traceback.format_exc()))
     except:
-        if context:
+        if daemon:
             context.close()
         raise