Skip to content

Commit

Permalink
Use check_open instead of isopen, ref dcdeef7 JuliaLang#8945
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Jan 5, 2015
1 parent da5013b commit f46d46d
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 @@ -869,7 +869,7 @@ end
const BACKLOG_DEFAULT = 511

function _listen(sock::UVServer; backlog::Integer=BACKLOG_DEFAULT)
!isopen(sock) && error("_listen(::UVServer, ...) called on closed socket")
check_open(sock)
err = ccall(:uv_listen, Cint, (Ptr{Void}, Cint, Ptr{Void}),
sock.handle, backlog, uv_jl_connectioncb::Ptr{Void})
sock.status = StatusActive
Expand Down

0 comments on commit f46d46d

Please sign in to comment.