asyncnet: clear SSL error queue before performing I/O

Follow up of 476be6cc27
This commit is contained in:
Leorize
2020-06-03 23:48:24 -05:00
committed by Andreas Rumpf
parent 256841cf2c
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.