1
0

network: minor fix in switch_to_interface

This commit is contained in:
SomberNight
2018-09-10 02:30:27 +02:00
parent 6b2509b106
commit 526319630e
2 changed files with 3 additions and 2 deletions

View File

@@ -569,9 +569,10 @@ class Network(PrintError):
# and to cancel tasks in interface.group.
# However, for headers sub, give preference to this interface
# over unknown ones, i.e. start it again right away.
old_server = self.interface.server
self.close_interface(self.interface)
if len(self.interfaces) <= self.num_server:
self.start_interface(self.interface.server)
self.start_interface(old_server)
self.interface = i
asyncio.get_event_loop().create_task(