mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-16 12:03:07 +00:00
Fix Win32 connection manager hanging when starting new windowsless daemon
This commit is contained in:
parent
827b53792b
commit
ba4ca111c6
@ -41,16 +41,12 @@ except ImportError:
|
||||
import deluge.rencode as rencode
|
||||
|
||||
import zlib
|
||||
import subprocess
|
||||
|
||||
import deluge.common
|
||||
import deluge.component as component
|
||||
from deluge.log import LOG as log
|
||||
|
||||
if deluge.common.windows_check():
|
||||
import win32api
|
||||
else:
|
||||
import subprocess
|
||||
|
||||
RPC_RESPONSE = 1
|
||||
RPC_ERROR = 2
|
||||
RPC_EVENT = 3
|
||||
@ -579,7 +575,7 @@ class Client(object):
|
||||
"""
|
||||
try:
|
||||
if deluge.common.windows_check():
|
||||
win32api.WinExec("deluged --port=%s --config=\"%s\"" % (port, config))
|
||||
subprocess.Popen(["deluged", "--port=%s" % port, "--config=%s" % config])
|
||||
elif deluge.common.osx_check():
|
||||
subprocess.call(["nohup", "deluged", "--port=%s" % port, "--config=%s" % config])
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user