aboutsummaryrefslogtreecommitdiff
path: root/src/zmq/zmqpublishnotifier.cpp
diff options
context:
space:
mode:
authormrbandrews <bandrewsny@gmail.com>2016-02-29 13:34:09 -0500
committermrbandrews <bandrewsny@gmail.com>2016-02-29 13:34:09 -0500
commit0040118959305c4f2b0e7e9c42cf3e865607a04a (patch)
tree370caed8dc52755d6fe60da4b91592da5ad87c73 /src/zmq/zmqpublishnotifier.cpp
parent78e81b0bc554f3f3edd6121671dae23483380d54 (diff)
Fixes ZMQ startup with bad arguments.
Diffstat (limited to 'src/zmq/zmqpublishnotifier.cpp')
-rw-r--r--src/zmq/zmqpublishnotifier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp
index ddc8fe93e9..f5839620ff 100644
--- a/src/zmq/zmqpublishnotifier.cpp
+++ b/src/zmq/zmqpublishnotifier.cpp
@@ -69,6 +69,7 @@ bool CZMQAbstractPublishNotifier::Initialize(void *pcontext)
if (rc!=0)
{
zmqError("Failed to bind address");
+ zmq_close(psocket);
return false;
}