asyncnet: clear SSL error queue before performing I/O
Follow up of 476be6cc278d58232e2c6cd3515eb24eca7e2d38
This commit is contained in:
parent
256841cf2c
commit
e4e3d99ee2
1 changed files with 1 additions and 0 deletions
|
|
@ -253,6 +253,7 @@ when defineSsl:
|
||||||
op: untyped) =
|
op: untyped) =
|
||||||
var opResult {.inject.} = -1.cint
|
var opResult {.inject.} = -1.cint
|
||||||
while opResult < 0:
|
while opResult < 0:
|
||||||
|
ErrClearError()
|
||||||
# Call the desired operation.
|
# Call the desired operation.
|
||||||
opResult = op
|
opResult = op
|
||||||
# Bit hackish here.
|
# Bit hackish here.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue