mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
if already running on init, kill
This commit is contained in:
parent
f54f2a50ec
commit
30b5967f12
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ class plugin_WebUi(object):
|
|||
self.interface = deluge_interface
|
||||
self.proc = None
|
||||
self.web_server = None
|
||||
|
||||
if not deluge.common.windows_check():
|
||||
if os.WEXITSTATUS(os.system('ps x -o pid,args |grep -v grep |grep -q run_webserver')):
|
||||
os.system('killall run_webserver')
|
||||
self.config_file = deluge.common.CONFIG_DIR + "/webui.conf"
|
||||
self.config = deluge.pref.Preferences(self.config_file, False)
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue