forked from goodboy/tractor
Shield channel closing in `_connect_chan()`
parent
30afcd2b6b
commit
60fc43e530
|
@ -716,4 +716,5 @@ async def _connect_chan(
|
|||
chan = Channel((host, port))
|
||||
await chan.connect()
|
||||
yield chan
|
||||
with trio.CancelScope(shield=True):
|
||||
await chan.aclose()
|
||||
|
|
Loading…
Reference in New Issue