cleanup and kill dbus-daemon on close when in win32

This commit is contained in:
Marcos Pinto 2007-09-12 01:42:37 +00:00
parent 63501ebe5b
commit 116c79ba3f
1 changed files with 5 additions and 0 deletions

View File

@ -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