fix deadlock

This commit is contained in:
Diego 2024-07-01 23:03:24 +02:00
parent 1631b32c55
commit ca9a029b63
No known key found for this signature in database
GPG Key ID: C9DAC9BF68D1F806
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ proc startSending(connection: Connection, remote: TransportAddress) =
try:
let datagram = await connection.quic.outgoing.get()
await connection.udp.sendTo(remote, datagram.data)
except TransportError:
except TransportError as e:
connection.loop.fail(e) # This might need to be revisited
await connection.drop()
connection.loop = asyncLoop(send)