summaryrefslogtreecommitdiff
path: root/run_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_server.py')
-rw-r--r--[-rwxr-xr-x]run_server.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/run_server.py b/run_server.py
index ebcdfc3..a215320 100755..100644
--- a/run_server.py
+++ b/run_server.py
@@ -128,12 +128,6 @@ if __name__ == '__main__':
}
})
- if hasattr(cherrypy.engine, "signals"):
- cherrypy.engine.signals.subscribe()
- else:
- if hasattr(cherrypy.engine, "signal_handler"):
- cherrypy.engine.signal_handler.subscribe()
- if hasattr(cherrypy.engine, "console_control_handler"):
- cherrypy.engine.console_control_handler.subscribe()
+ cherrypy.engine.signals.subscribe()
cherrypy.engine.start()
cherrypy.engine.block()