diff --git a/tcp_syni.nim b/tcp_syni.nim index 651eda6..bc3a32c 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -236,9 +236,9 @@ proc prepareAccept(attempt: AcceptAttempt) {.async.} = await connectFuture or sleepAsync(Timeout) if connectFuture.finished(): echo "connected during accept phase" - sock.close() except OSError: discard + sock.close() proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress, srcPort: Port) {.async.} =