summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-20 20:00:40 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-20 20:00:40 +0100
commitff9a9560fef2d4a977a994d967e2848c1b62d206 (patch)
treeb9dab5bec44bc4b94151932ea2e0daa478f17e9a /pyLoadCore.py
parentfixed file removing? (diff)
downloadpyload-ff9a9560fef2d4a977a994d967e2848c1b62d206.tar.xz
fixed file_list, clean exit?
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index e7911a65b..fbce78aaf 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -158,9 +158,8 @@ class Core(object):
while True:
sleep(2)
- if self.do_kill:
- self.logger.info("pyLoad quits")
- exit()
+ if self.do_kill:
+ raise KeyboardInterrupt
def init_server(self):
try:
@@ -489,6 +488,6 @@ if __name__ == "__main__":
try:
pyload_core.start()
except KeyboardInterrupt:
- pyload_core.logger.info("killed pyLoad by Terminal")
+ pyload_core.logger.info("killed pyLoad")
exit()