Skip to content

Commit

Permalink
fix JuliaLang#3691 better
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jul 12, 2013
1 parent 69031b1 commit c2b3fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function _uv_hook_readcb(stream::AsyncStream, nread::Int, base::Ptr{Void}, len::
if _uv_lasterror() != 1 #UV_EOF == 1
err = UVError("readcb")
else
err = EOFError()
err = () #EOFError
end
close(stream)
notify(stream.readnotify,err)
Expand Down Expand Up @@ -381,7 +381,7 @@ function _uv_hook_close(uv::Union(AsyncStream,UVServer))
uv.closecb(uv)
end
notify(uv.closenotify)
try notify(uv.readnotify,uv_noerror()) end
try notify(uv.readnotify) end
try notify(uv.connectnotify) end
end
_uv_hook_close(uv::AsyncWork) = (uv.handle = C_NULL; nothing)
Expand Down

0 comments on commit c2b3fed

Please sign in to comment.