Fix subscription error

This commit is contained in:
2020-05-06 15:51:30 +02:00
parent e5e9d4074f
commit 57bea8a582
+1 -1
View File
@@ -61,7 +61,7 @@ void* LiveRecvModule::connect_socket(size_t module_id)
throw runtime_error(zmq_strerror(errno));
}
if (zmq_setsockopt(sock, ZMQ_SUBSCRIBE, "", sizeof("")) != 0) {
if (zmq_setsockopt(sock, ZMQ_SUBSCRIBE, "", 0) != 0) {
throw runtime_error(zmq_strerror(errno));
}