Async connect/disconnect. Moved everything to a new Async and Timeout which cleans...
[theonering] / src / theonering.py
index 1bc7436..1e06a1d 100755 (executable)
@@ -63,7 +63,7 @@ def run_theonering(persist):
                gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb)
                shutdown_callback = quit
 
-       signal.signal(signal.SIGTERM, quit)
+       signal.signal(signal.SIGTERM, lambda: quit)
 
        try:
                manager = connection_manager.TheOneRingConnectionManager(shutdown_func=shutdown_callback)