From e5ccea20267b102de403938eeeeb05fe7f79b8ce Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 8 Feb 2008 13:08:23 +0000 Subject: [PATCH] Use boleans instead of ints. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19180 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFActivity/ActivityTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py index 164a1a58b8..e80cd8c1db 100644 --- a/product/CMFActivity/ActivityTool.py +++ b/product/CMFActivity/ActivityTool.py @@ -71,7 +71,7 @@ max_active_threads = 1 # 2 will cause more bug to appear (he he) is_initialized = False tic_lock = threading.Lock() # A RAM based lock to prevent too many concurrent tic() calls timerservice_lock = threading.Lock() # A RAM based lock to prevent TimerService spamming when busy -first_run = 1 +first_run = True currentNode = None ROLE_IDLE = 0 ROLE_PROCESSING = 1 @@ -641,7 +641,7 @@ class ActivityTool (Folder, UniqueObject): processing_node=processing_node) inner_self.SQLQueue_clearProcessingFlag( processing_node=processing_node) - first_run = 0 + first_run = False try: # Wakeup each queue -- 2.30.9