소스 검색

[eventlet] Do not call blockdetection setup if no timeout set. Closes #1408

Ask Solem 12 년 전
부모
커밋
d0fba52bd5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      celery/concurrency/eventlet.py

+ 2 - 1
celery/concurrency/eventlet.py

@@ -34,7 +34,8 @@ if not EVENTLET_NOPATCH and not PATCHED[0]:
     import eventlet
     import eventlet.debug
     eventlet.monkey_patch()
-    eventlet.debug.hub_blocking_detection(EVENTLET_DBLOCK)
+    if EVENTLET_DBLOCK:
+        eventlet.debug.hub_blocking_detection(EVENTLET_DBLOCK)
 
 from time import time