Fix classic mode

This commit is contained in:
Andrew Resch 2008-12-10 22:15:09 +00:00
parent b91b750024
commit 19196b1363
1 changed files with 3 additions and 2 deletions

View File

@ -156,9 +156,10 @@ class ConnectionManager(component.Component):
if self.gtkui_config["classic_mode"]:
self.start_localhost(DEFAULT_PORT)
# We need to wait for the host to start before connecting
while not self.test_online_status(DEFAULT_URI):
uri = self.get_localhost_auth_uri(DEFAULT_URI)
while not self.test_online_status(uri):
time.sleep(0.01)
client.set_core_uri(DEFAULT_URI)
client.set_core_uri(uri)
self.hide()
return