self.lock.acquire()
should be after epoll.poll has returned
This commit is contained in:
parent
1c20eab9d6
commit
b00819d581
1 changed files with 1 additions and 1 deletions
|
@ -122,8 +122,8 @@ class Bot(object):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while self.running:
|
while self.running:
|
||||||
self.lock.acquire()
|
|
||||||
events = self.poll.poll(self.get_poll_timeout())
|
events = self.poll.poll(self.get_poll_timeout())
|
||||||
|
self.lock.acquire()
|
||||||
self.timers.call()
|
self.timers.call()
|
||||||
self.cache.expire()
|
self.cache.expire()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue