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.