Fix #565 wait for the deluged process to start to prevent defunct

processes
This commit is contained in:
Andrew Resch 2008-10-24 07:39:14 +00:00
commit dd86ac9bcc
2 changed files with 64 additions and 61 deletions

View file

@ -3,6 +3,9 @@ Deluge 1.0.4 (In Development)
* Fix #560 force an int value for global max connections * Fix #560 force an int value for global max connections
* Fix #545 use proper values in ratio calculation * Fix #545 use proper values in ratio calculation
GtkUI:
* Fix #565 wait for the deluged process to start to prevent defunct processes
Deluge 1.0.3 (18 October 2008) Deluge 1.0.3 (18 October 2008)
Core: Core:
* Fix upnp - it should work on more routers now too * Fix upnp - it should work on more routers now too

View file

@ -130,7 +130,7 @@ class ConnectionManager(component.Component):
if deluge.common.windows_check(): if deluge.common.windows_check():
win32api.WinExec("deluged -p 58846") win32api.WinExec("deluged -p 58846")
else: else:
subprocess.Popen(["deluged", "-p 58846"]) subprocess.call(["deluged", "-p 58846"])
time.sleep(0.1) time.sleep(0.1)
# We need to wait for the host to start before connecting # We need to wait for the host to start before connecting
while not self.test_online_status(uri): while not self.test_online_status(uri):
@ -165,7 +165,7 @@ class ConnectionManager(component.Component):
if deluge.common.windows_check(): if deluge.common.windows_check():
win32api.WinExec("deluged -p %s" % port) win32api.WinExec("deluged -p %s" % port)
else: else:
subprocess.Popen(["deluged", "-p %s" % port]) subprocess.call(["deluged", "-p %s" % port])
# We need to wait for the host to start before connecting # We need to wait for the host to start before connecting
while not self.test_online_status(uri): while not self.test_online_status(uri):
time.sleep(0.01) time.sleep(0.01)
@ -440,7 +440,7 @@ class ConnectionManager(component.Component):
if deluge.common.windows_check(): if deluge.common.windows_check():
win32api.WinExec("deluged -p %s" % port) win32api.WinExec("deluged -p %s" % port)
else: else:
subprocess.Popen(["deluged", "-p %s" % port]) subprocess.call(["deluged", "-p %s" % port])
def on_button_close_clicked(self, widget): def on_button_close_clicked(self, widget):
log.debug("on_button_close_clicked") log.debug("on_button_close_clicked")