diff --git a/src/web/server.py b/src/web/server.py index 57de37bc..9caa84d6 100755 --- a/src/web/server.py +++ b/src/web/server.py @@ -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)