From ba4ca111c6e7a9f2e087e9d679f2ab0bed26f0ab Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 30 Nov 2012 14:44:05 +0000 Subject: [PATCH] Fix Win32 connection manager hanging when starting new windowsless daemon --- deluge/ui/client.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index ada16d49c..98a7bf7aa 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -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: