This commit is contained in:
Tanguy 2023-03-07 11:03:06 +01:00
parent a751baeb8b
commit 08bb0104ed
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E

View File

@ -89,7 +89,7 @@ method pushData*(s: BufferStream, data: seq[byte]) {.base, async.} =
try:
s.pushing = true
trace "Pushing data", s, data = data.len
discard s.readQueue.addLast(data)
await s.readQueue.addLast(data)
finally:
s.pushing = false