mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix #565 wait for the deluged process to start to prevent defunct
processes
This commit is contained in:
parent
1aa33421e9
commit
dc0a2ce52e
1 changed files with 61 additions and 62 deletions
|
@ -130,7 +130,7 @@ class ConnectionManager(component.Component):
|
|||
if deluge.common.windows_check():
|
||||
win32api.WinExec("deluged -p 58846")
|
||||
else:
|
||||
subprocess.Popen(["deluged", "-p 58846"])
|
||||
subprocess.call(["deluged", "-p 58846"])
|
||||
time.sleep(0.1)
|
||||
# We need to wait for the host to start before connecting
|
||||
while not self.test_online_status(uri):
|
||||
|
@ -165,7 +165,7 @@ class ConnectionManager(component.Component):
|
|||
if deluge.common.windows_check():
|
||||
win32api.WinExec("deluged -p %s" % port)
|
||||
else:
|
||||
subprocess.Popen(["deluged", "-p %s" % port])
|
||||
subprocess.call(["deluged", "-p %s" % port])
|
||||
# We need to wait for the host to start before connecting
|
||||
while not self.test_online_status(uri):
|
||||
time.sleep(0.01)
|
||||
|
@ -440,7 +440,7 @@ class ConnectionManager(component.Component):
|
|||
if deluge.common.windows_check():
|
||||
win32api.WinExec("deluged -p %s" % port)
|
||||
else:
|
||||
subprocess.Popen(["deluged", "-p %s" % port])
|
||||
subprocess.call(["deluged", "-p %s" % port])
|
||||
|
||||
def on_button_close_clicked(self, widget):
|
||||
log.debug("on_button_close_clicked")
|
||||
|
@ -516,4 +516,3 @@ class ConnectionManager(component.Component):
|
|||
|
||||
def _on_row_activated(self, tree, path, view_column):
|
||||
self.on_button_connect_clicked(self.glade.get_widget("button_connect"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue