From ef30b307ae637be944d7c449b7082547ffdf43a3 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Tue, 21 May 2024 17:10:53 +0200 Subject: [PATCH] fixup! Replace explicit ccall's with calls to the generated bindings --- src/context.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.jl b/src/context.jl index fd4c0a2..c4c306e 100644 --- a/src/context.jl +++ b/src/context.jl @@ -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() @@ -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()))