Commit c0a65110 authored by Jim Fulton's avatar Jim Fulton

Fixed atexit handler to deal with the possibility that the ex

parent b51ce70e
......@@ -42,12 +42,13 @@ 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
client_running = False
client_trigger.pull_trigger()
client_exit_event.wait(99)
if client_running:
client_running = False
client_trigger.pull_trigger()
client_exit_event.wait(99)
atexit.register(client_exit)
......
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