From 116c79ba3f4993f766cb8ead94783a5e5f1ff7b4 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 12 Sep 2007 01:42:37 +0000 Subject: [PATCH] cleanup and kill dbus-daemon on close when in win32 --- src/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core.py b/src/core.py index b72753048..7c330e1b7 100644 --- a/src/core.py +++ b/src/core.py @@ -299,6 +299,11 @@ class Manager: print "Quitting the core..." deluge_core.quit() + #kill dbus on windows + if platform.system() == "Windows": + import os + os.popen4('tskill.exe dbus-daemon.exe') + def pickle_state(self): # Pickle the state so if we experience a crash, the latest state is # available