From 5d0c725463e08d5ba00b182f2baabcc181ff78b6 Mon Sep 17 00:00:00 2001 From: Bung Date: Fri, 16 Dec 2022 17:40:33 +0800 Subject: [PATCH] fix int set construction (#335) --- chronos/transports/stream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/transports/stream.nim b/chronos/transports/stream.nim index 832ea1b..60da5b1 100644 --- a/chronos/transports/stream.nim +++ b/chronos/transports/stream.nim @@ -1381,7 +1381,7 @@ else: let err = osLastError() if int(err) == EINTR: continue - elif int(err) in {ECONNRESET}: + elif int(err) == ECONNRESET: transp.state.incl({ReadEof, ReadPaused}) try: transp.fd.removeReader()