We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d79066 + 971092e commit fadb37eCopy full SHA for fadb37e
zmq.hpp
@@ -372,16 +372,14 @@ namespace zmq
372
373
inline ~context_t () ZMQ_NOTHROW
374
{
375
- close();
+ int rc = zmq_ctx_destroy (ptr);
376
+ ZMQ_ASSERT (rc == 0);
377
}
378
379
inline void close() ZMQ_NOTHROW
380
- if (ptr == NULL)
381
- return;
382
- int rc = zmq_ctx_destroy (ptr);
+ int rc = zmq_ctx_shutdown (ptr);
383
ZMQ_ASSERT (rc == 0);
384
- ptr = NULL;
385
386
387
// Be careful with this, it's probably only useful for
0 commit comments