self.lock.acquire() should be after epoll.poll has returned

This commit is contained in:
jesopo 2018-10-04 14:44:50 +01:00
parent 1c20eab9d6
commit b00819d581

View file

@ -122,8 +122,8 @@ class Bot(object):
def run(self):
while self.running:
self.lock.acquire()
events = self.poll.poll(self.get_poll_timeout())
self.lock.acquire()
self.timers.call()
self.cache.expire()