mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
asyncnet: clear SSL error queue before performing I/O
Follow up of 476be6cc27
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user