Correct call to _aclose() in response to TransportNotConnected.

This commit is contained in:
Jonathan Moody 2022-04-12 12:32:16 -04:00
parent b036961954
commit 82d7f81f41

View file

@ -175,7 +175,8 @@ class IterativeFinder(AsyncGenerator):
self._reset_closest(peer)
return
except TransportNotConnected:
return self._aclose()
await self._aclose(reason="not connected")
return
except RemoteException:
self._reset_closest(peer)
return