Skip to content

Commit

Permalink
fixup! Replace explicit ccall's with calls to the generated bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed May 31, 2024
1 parent f46816f commit 7e54cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mutable struct Context
data::Ptr{Cvoid}

# need to keep a list of weakrefs to sockets for this Context in order to
# close them before finalizing (otherwise zmq_term will hang)
# close them before finalizing (otherwise zmq_ctx_term will hang)
sockets::Vector{WeakRef}

function Context()
Expand Down Expand Up @@ -73,7 +73,7 @@ function Base.close(ctx::Context)
end
end
empty!(getfield(ctx, :sockets))
rc = lib.zmq_ctx_destroy(ctx)
rc = lib.zmq_ctx_term(ctx)
setfield!(ctx, :data, C_NULL)
if rc != 0
throw(StateError(jl_zmq_error_str()))
Expand Down

0 comments on commit 7e54cf5

Please sign in to comment.