commit 119aa5bf2e410199a52a9749c5400399637133af
parent ba2570b8aa62a3b2591cdd663c3a9e8df5397c3c
Author: Neil Booth <kyuupichan@gmail.com>
Date: Tue, 1 Sep 2015 17:28:10 +0900
Move message so it doesn't repeat when connecting
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py
@@ -315,6 +315,7 @@ class Network(util.DaemonThread):
def start_interface(self, server):
if (not server in self.interfaces and not server in self.connecting):
if server == self.default_server:
+ self.print_error("connecting to %s as new interface" % server)
self.set_status('connecting')
c = Connection(server, self.socket_queue, self.config.path)
self.connecting[server] = c
@@ -405,7 +406,6 @@ class Network(util.DaemonThread):
if server already is our interface.'''
self.default_server = server
if server not in self.interfaces:
- self.print_error("starting %s; will switch once connected" % server)
self.start_interface(server)
return
i = self.interfaces[server]