From b14aae5ebc30c17a76197b7bd0e992a16de1c52f Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 9 Sep 2015 22:13:09 +0900 Subject: [PATCH] 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. --- lib/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/network.py b/lib/network.py index e790c295..22f53748 100644 --- 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]