Fix socket bind order regarding ZMQStream

This commit is contained in:
Kristóf Tóth 2019-07-30 15:23:24 +02:00
parent 30223fe99f
commit 78c3a8cf98

View File

@ -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):