Commit eae4a637 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix issue with deadlock. status_flag can not be changed within the run method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@38984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c832ec6
......@@ -42,9 +42,12 @@ class MonitorRequest(Monitor, Thread):
Thread.__init__(self)
self.request_limit = request_limit
def start(self):
self.status_flag = True
Thread.start(self)
def run(self):
"""Is called by start function"""
self.status_flag = True
logger.debug("Start MonitorRequest")
while self.status_flag:
if self.openoffice.request > self.request_limit:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment