Skip to content

Commit

Permalink
#271 fixed tornado stopping from signal
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Mar 22, 2020
1 parent ea0e895 commit b850e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def signal_handler(signum, frame):

if can_stop:
LOGGER.info('Stopping server on interrupt')
io_loop.add_callback(io_loop.stop)
io_loop.add_callback_from_signal(io_loop.stop)

signal.signal(signal.SIGINT, signal_handler)

Expand Down

0 comments on commit b850e51

Please sign in to comment.