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
|
||||
await chan.aclose()
|
||||
with trio.CancelScope(shield=True):
|
||||
await chan.aclose()
|
||||
|
|
Loading…
Reference in New Issue