From 78c3a8cf98f74b0b15a298d1b6dc8e7c2b7a8e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 30 Jul 2019 15:23:24 +0200 Subject: [PATCH] Fix socket bind order regarding ZMQStream --- tfw/internals/networking/zmq_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfw/internals/networking/zmq_listener.py b/tfw/internals/networking/zmq_listener.py index a46fb5a..a1e1313 100644 --- a/tfw/internals/networking/zmq_listener.py +++ b/tfw/internals/networking/zmq_listener.py @@ -12,8 +12,8 @@ class ZMQDownlinkListener: def __init__(self, bind_addr): self._zmq_pull_socket = zmq.Context.instance().socket(zmq.PULL) self._zmq_pull_socket.setsockopt(zmq.RCVHWM, 0) - self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket) self._zmq_pull_socket.bind(bind_addr) + self._zmq_pull_stream = ZMQStream(self._zmq_pull_socket) LOG.debug('Pull socket bound to %s', bind_addr) def register_callback(self, callback):