Fix Win32 connection manager hanging when starting new windowsless daemon

This commit is contained in:
Calum Lind 2012-11-30 14:44:05 +00:00
parent 827b53792b
commit ba4ca111c6
1 changed files with 2 additions and 6 deletions

View File

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