From 50d6882a9826ae99e38d8dd373fe2a8e4c02241f Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 23 Jun 2014 01:17:06 +0200 Subject: [PATCH] Close all attached after start --- couchpotato/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 6560f55..3a779ba 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -304,6 +304,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En loop.start() server.close_all_connections() server.stop() + loop.close(all_fds = True) except Exception as e: log.error('Failed starting: %s', traceback.format_exc()) try: