Fix latest gevent compatibility

This commit is contained in:
shortcutme 2020-06-18 17:22:45 +02:00
parent 79d26060b3
commit ea6016d004
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import threading
import time
import queue
import gevent
import gevent.monkey
@ -121,7 +122,7 @@ class Event:
# Execute function calls in main loop from other threads
class MainLoopCaller():
def __init__(self):
self.queue_call = gevent._threading.Queue()
self.queue_call = queue.Queue()
self.pool = gevent.threadpool.ThreadPool(1)
self.num_direct = 0