status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/docs/chronos
Apache License 2.0
352 stars 51 forks source link

Ensure `transp.reader` is reset to `nil` on error #508

Closed etan-status closed 3 months ago

etan-status commented 4 months ago

In stream.readLoop, a finished Future was left in transp.reader if there was an error in resumeRead. Set it to nil as well.