Skip to content

Commit

Permalink
Merge pull request JuliaLang#3435 from danielmendel/fix-accept-uverror
Browse files Browse the repository at this point in the history
Fixes UVError bug in listen/accept
  • Loading branch information
Keno committed Jun 18, 2013
2 parents 25569e3 + fad8350 commit 57bcb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ function accept(server::UVServer, client::AsyncStream)
uv_error("accept:",_uv_lasterror()!=UV_EAGAIN)
end
err = wait(server.connectnotify)
if err.uv_code != -1
if err.uv_code == -1
throw(UVError("accept",err))
end
end
Expand Down

0 comments on commit 57bcb34

Please sign in to comment.