Zmq replay should always bind

This commit is contained in:
2020-05-18 18:27:32 +02:00
parent 5e39f65953
commit 60dd3cdd8b
+1 -1
View File
@@ -170,7 +170,7 @@ int main (int argc, char *argv[]) {
if (zmq_setsockopt(socket, ZMQ_LINGER, &linger_ms, sizeof(linger_ms)) != 0)
throw runtime_error(strerror (errno));
if (zmq_connect(socket, ipc_address.c_str()) != 0)
if (zmq_bind(socket, ipc_address.c_str()) != 0)
throw runtime_error(strerror (errno));
sf_replay(socket, device, channel_name, start_pulse_id, stop_pulse_id);