1
0

Clear self.interface when switching

When switching and the interface isn't immediately available,
we should clear self.Interface as otherwise requests will
still be going to it.
This commit is contained in:
Neil Booth
2015-09-09 22:13:09 +09:00
parent 6f1367fea6
commit b14aae5ebc

View File

@@ -418,6 +418,7 @@ class Network(util.DaemonThread):
if server already is our interface.'''
self.default_server = server
if server not in self.interfaces:
self.interface = None
self.start_interface(server)
return
i = self.interfaces[server]