Commit ff710eb7 authored by Jim Fulton's avatar Jim Fulton

Fixed atexit handler to deal with the possibility that the ex

parent 2ac9c337
......@@ -42,9 +42,10 @@ client_map = {}
client_trigger = trigger(client_map)
client_logger = logging.getLogger('ZEO.zrpc.client_loop')
client_exit_event = threading.Event()
client_running = True
client_running = False
def client_exit():
global client_running
if client_running:
client_running = False
client_trigger.pull_trigger()
client_exit_event.wait(99)
......
Markdown is supported
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