Browse Source

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.
283
Neil Booth 9 years ago
parent
commit
b14aae5ebc
  1. 1
      lib/network.py

1
lib/network.py

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

Loading…
Cancel
Save