diff --git a/base/stream.jl b/base/stream.jl index 33f161cd8cb7b..bc06b8126b805 100644 --- a/base/stream.jl +++ b/base/stream.jl @@ -932,7 +932,7 @@ function readbytes!(s::LibuvStream, a::Vector{UInt8}, nb = length(a)) finally s.buffer = sbuf if !isempty(s.readnotify.waitq) - start_reading(x) # resume reading iff there are currently other read clients of the stream + start_reading(s) # resume reading iff there are currently other read clients of the stream end end end