From e4e3d99ee2381e5fc2fe922aa6933df8cebb599b Mon Sep 17 00:00:00 2001 From: Leorize Date: Wed, 3 Jun 2020 23:48:24 -0500 Subject: [PATCH] asyncnet: clear SSL error queue before performing I/O Follow up of 476be6cc278d58232e2c6cd3515eb24eca7e2d38 --- lib/pure/asyncnet.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index bd9cd43124..3fc1a01775 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -253,6 +253,7 @@ when defineSsl: op: untyped) = var opResult {.inject.} = -1.cint while opResult < 0: + ErrClearError() # Call the desired operation. opResult = op # Bit hackish here.