Fix autoconnecting to a host other than the first one in the list

This commit is contained in:
Andrew Resch 2009-12-13 21:29:46 +00:00
commit de262bf7db

View file

@ -184,7 +184,7 @@ class GtkUI(object):
# Attempt to register a magnet URI handler with gconf, but do not overwrite # Attempt to register a magnet URI handler with gconf, but do not overwrite
# if already set by another program. # if already set by another program.
common.associate_magnet_links(False) common.associate_magnet_links(False)
# Make sure gtkui.conf has at least the defaults set # Make sure gtkui.conf has at least the defaults set
self.config = deluge.configmanager.ConfigManager("gtkui.conf", DEFAULT_PREFS) self.config = deluge.configmanager.ConfigManager("gtkui.conf", DEFAULT_PREFS)
@ -333,7 +333,7 @@ Please see the details below for more information."), details=traceback.format_e
if try_connect: if try_connect:
do_connect(6) do_connect(6)
break break
if self.config["show_connection_manager_on_start"]: if self.config["show_connection_manager_on_start"]:
# XXX: We need to call a simulate() here, but this could be a bug in twisted # XXX: We need to call a simulate() here, but this could be a bug in twisted