commit b14aae5ebc30c17a76197b7bd0e992a16de1c52f
parent 6f1367fea69306452b070f3d4c9b4fff06a97519
Author: Neil Booth <kyuupichan@gmail.com>
Date: Wed, 9 Sep 2015 22:13:09 +0900
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/network.py b/lib/network.py
@@ -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]