remove usage of deprecated method

This commit is contained in:
Jan Schreiber 2020-09-03 19:50:46 +02:00
parent 289ac1d5ca
commit 53a21f8e95

View file

@ -11,7 +11,7 @@ NetworkThread::NetworkThread(QObject *parent) :
void NetworkThread::connect() {
socket = new zmq::socket_t(context, zmq::socket_type::pair);
int linger = 0;
socket->setsockopt(ZMQ_LINGER, &linger, sizeof (linger));
socket->set(zmq::sockopt::linger, linger);
try {
socket->bind("tcp://127.0.0.1:12345");
} catch (zmq::error_t err) {