Fix #565 wait for the deluged process to start to prevent defunct
processes
This commit is contained in:
parent
1aa33421e9
commit
dc0a2ce52e
|
@ -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")
|
||||||
|
@ -516,4 +516,3 @@ class ConnectionManager(component.Component):
|
||||||
|
|
||||||
def _on_row_activated(self, tree, path, view_column):
|
def _on_row_activated(self, tree, path, view_column):
|
||||||
self.on_button_connect_clicked(self.glade.get_widget("button_connect"))
|
self.on_button_connect_clicked(self.glade.get_widget("button_connect"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue