Commit bd9253ef authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Fix to idle.idleReset function which could error on exit.

parent 9788f441
......@@ -214,8 +214,14 @@ def idleReset():
if _idleTimer is not None:
_idleTimer.Stop()
# If we're atexit, the ref
# to the queue module might
# have been cleared.
if queue is not None: newQueue = queue.Queue()
else: newQueue = None
_idleRegistered = False
_idleQueue = queue.Queue()
_idleQueue = newQueue
_idleQueueDict = {}
_idleTimer = None
_idleCallRate = 200
......
Supports Markdown
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