From b850e51805887958e3e172d248949a67405b4d2d Mon Sep 17 00:00:00 2001 From: yshepilov Date: Sun, 22 Mar 2020 14:41:38 +0100 Subject: [PATCH] #271 fixed tornado stopping from signal --- src/web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)