From ea6016d004eeb1c8f2927d171fae615d1afc7d8e Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 18 Jun 2020 17:22:45 +0200 Subject: [PATCH] Fix latest gevent compatibility --- src/util/ThreadPool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/ThreadPool.py b/src/util/ThreadPool.py index 8c759039..5b31ce37 100644 --- a/src/util/ThreadPool.py +++ b/src/util/ThreadPool.py @@ -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