aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-11-11 22:21:43 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-11-11 22:22:32 +0000
commit3e730bf90aaf53c41ff3a778f6aac15d163d1c0c (patch)
tree84593c918cea5708359ef94b50dd94dd9b501a85 /src
parent80fdb6fad132166b10fbeb8615e3c5c591209e0b (diff)
zmq: Fix due to invalid argument and multiple notifiers
Diffstat (limited to 'src')
-rw-r--r--src/zmq/zmqpublishnotifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp
index ba89d1401d..233a45d19f 100644
--- a/src/zmq/zmqpublishnotifier.cpp
+++ b/src/zmq/zmqpublishnotifier.cpp
@@ -112,7 +112,8 @@ bool CZMQAbstractPublishNotifier::Initialize(void *pcontext)
void CZMQAbstractPublishNotifier::Shutdown()
{
- assert(psocket);
+ // Early return if Initialize was not called
+ if (!psocket) return;
int count = mapPublishNotifiers.count(address);