summaryrefslogtreecommitdiffstats
path: root/module/web/ServerThread.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-24 01:41:13 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-24 01:41:13 +0100
commit5c7e9f0f1325523347a52869cebbf03463550bca (patch)
tree48f33c94330fc41e5af0209d03177c4179c78bc3 /module/web/ServerThread.py
parentdownloads are now aborted correctly, gui: remove downloads, new icons (diff)
downloadpyload-5c7e9f0f1325523347a52869cebbf03463550bca.tar.xz
clean shutdown
Diffstat (limited to 'module/web/ServerThread.py')
-rw-r--r--module/web/ServerThread.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index 0d6044562..069cabafe 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -36,7 +36,10 @@ class WebServer(threading.Thread):
def quit(self):
if os.name == 'posix':
- os.kill(self.pid, SIGINT)
+ try:
+ os.kill(self.pid, SIGINT)
+ except:
+ pass
else:
self.p.kill()