mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
Merge pull request #52 from revaultch/master
Fixes assertion error: src/mutex.hpp:123
This commit is contained in:
commit
fadb37e4a7
8
zmq.hpp
8
zmq.hpp
@ -372,16 +372,14 @@ namespace zmq
|
||||
|
||||
inline ~context_t () ZMQ_NOTHROW
|
||||
{
|
||||
close();
|
||||
int rc = zmq_ctx_destroy (ptr);
|
||||
ZMQ_ASSERT (rc == 0);
|
||||
}
|
||||
|
||||
inline void close() ZMQ_NOTHROW
|
||||
{
|
||||
if (ptr == NULL)
|
||||
return;
|
||||
int rc = zmq_ctx_destroy (ptr);
|
||||
int rc = zmq_ctx_shutdown (ptr);
|
||||
ZMQ_ASSERT (rc == 0);
|
||||
ptr = NULL;
|
||||
}
|
||||
|
||||
// Be careful with this, it's probably only useful for
|
||||
|
Loading…
Reference in New Issue
Block a user