diff options
author | Leorize <leorize+oss@disroot.org> | 2020-06-03 23:48:24 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-06-06 21:11:53 +0200 |
commit | e4e3d99ee2381e5fc2fe922aa6933df8cebb599b (patch) | |
tree | 63b240162c5b1dfbd4638e365015558e9ec5714c /lib | |
parent | 256841cf2cfbeb0ccd28de53427583ef348a1ab6 (diff) | |
download | Nim-e4e3d99ee2381e5fc2fe922aa6933df8cebb599b.tar.gz |
asyncnet: clear SSL error queue before performing I/O
Follow up of 476be6cc278d58232e2c6cd3515eb24eca7e2d38
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asyncnet.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index bd9cd4312..3fc1a0177 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. |