asyncnet: clear SSL error queue before performing I/O

Follow up of 476be6cc278d58232e2c6cd3515eb24eca7e2d38
This commit is contained in:
Leorize 2020-06-03 23:48:24 -05:00 • committed by Andreas Rumpf
commit e4e3d99ee2

View file

@ -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.