summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 400c675..f8db7a2 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -150,7 +150,6 @@ if config_file is not None:
code = code.decode('utf8', 'error') + '\n'
code = compile(code, file, 'exec')
exec(code, globals)
- break
else:
print('No configuration file found')
sys.exit(1)
@@ -168,6 +167,7 @@ if periodically is not None:
running = False
start_over()
monitor_controller()
+ close_c_bindings()
sys.exit(0)
running = False
signal.signal(signal.SIGTERM, signal_SIGTERM)
@@ -205,3 +205,5 @@ if periodically is not None:
start_over()
monitor_controller()
+close_c_bindings()
+