summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/app_factory.py2
-rw-r--r--service/pixelated/config/reactor_manager.py7
2 files changed, 1 insertions, 8 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py
index 38395325..735313b4 100644
--- a/service/pixelated/config/app_factory.py
+++ b/service/pixelated/config/app_factory.py
@@ -89,7 +89,7 @@ def init_leap_session(app):
return leap_session
-def create_app(debug_enabled, app):
+def create_app(app, debug_enabled):
with app.app_context():
leap_session = init_leap_session(app)
diff --git a/service/pixelated/config/reactor_manager.py b/service/pixelated/config/reactor_manager.py
index 813714a8..af140c5b 100644
--- a/service/pixelated/config/reactor_manager.py
+++ b/service/pixelated/config/reactor_manager.py
@@ -22,11 +22,6 @@ import logging
from twisted.internet import reactor
-def signal_handler(signal, frame):
- stop_reactor_on_exit()
- sys.exit(0)
-
-
def start_reactor(logging=False):
if logging:
enable_logging()
@@ -45,8 +40,6 @@ def stop_reactor_on_exit():
global REACTOR_THREAD
REACTOR_THREAD = None
-signal.signal(signal.SIGINT, signal_handler)
-
def enable_logging():
logging.basicConfig(level=logging.DEBUG,