diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-11-11 22:21:43 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-11-11 22:22:32 +0000 |
commit | 3e730bf90aaf53c41ff3a778f6aac15d163d1c0c (patch) | |
tree | 84593c918cea5708359ef94b50dd94dd9b501a85 /src | |
parent | 80fdb6fad132166b10fbeb8615e3c5c591209e0b (diff) | |
download | bitcoin-3e730bf90aaf53c41ff3a778f6aac15d163d1c0c.tar.xz |
zmq: Fix due to invalid argument and multiple notifiers
Diffstat (limited to 'src')
-rw-r--r-- | src/zmq/zmqpublishnotifier.cpp | 3 |
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); |