diff --git a/zmq.hpp b/zmq.hpp index 089ad09..39ca13c 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -851,7 +851,7 @@ class context_t int rc; do { - rc = zmq_ctx_destroy(ptr); + rc = zmq_ctx_term(ptr); } while (rc == -1 && errno == EINTR); ZMQ_ASSERT(rc == 0);