1
0

network.new_interface: clarify how timed out interfaces are closed

This commit is contained in:
SomberNight
2018-09-13 20:50:32 +02:00
parent 64ab8222f7
commit e4bd445a38
2 changed files with 7 additions and 2 deletions

View File

@@ -264,8 +264,7 @@ class Interface(PrintError):
def mark_ready(self):
if self.ready.cancelled():
self.close()
raise asyncio.CancelledError()
raise GracefulDisconnect('conn establishment was too slow; *ready* future was cancelled')
if self.ready.done():
return