diff --git a/lib/pure/asyncio.nim b/lib/pure/asyncio.nim index a0cf657bfb..c4a07d7513 100644 --- a/lib/pure/asyncio.nim +++ b/lib/pure/asyncio.nim @@ -241,7 +241,7 @@ proc asyncSockHandleWrite(h: PObject) = if PAsyncSocket(h).handleWrite != nil: PAsyncSocket(h).handleWrite(PAsyncSocket(h)) - except EOS, ESSL: + except EOS: # Most likely the socket closed before the full buffer could be sent to it. sock.close() # TODO: Provide a handleError for users? else: