mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
close daemon in vista, too
This commit is contained in:
parent
d45b859705
commit
c7067c93d2
1 changed files with 5 additions and 1 deletions
|
@ -306,9 +306,13 @@ class Manager:
|
||||||
deluge_core.quit()
|
deluge_core.quit()
|
||||||
|
|
||||||
#kill dbus on windows
|
#kill dbus on windows
|
||||||
if common.windows_check():
|
import platform
|
||||||
|
if platform.system() == "Windows":
|
||||||
import os
|
import os
|
||||||
os.popen4('tskill.exe dbus-daemon-deluge')
|
os.popen4('tskill.exe dbus-daemon-deluge')
|
||||||
|
elif platform.system() == "Microsoft":
|
||||||
|
import os
|
||||||
|
os.popen4('taskkill.exe /IM dbus-daemon-deluge.exe')
|
||||||
|
|
||||||
def pickle_state(self):
|
def pickle_state(self):
|
||||||
# Pickle the state so if we experience a crash, the latest state is
|
# Pickle the state so if we experience a crash, the latest state is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue