Use close instead of disconnect for ZMQ shutdown

This commit is contained in:
2020-04-02 14:49:58 +02:00
parent a5419b4812
commit c35ceeed80
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -63,7 +63,6 @@ void ZmqRecvModule::stop_recv()
for (auto& recv_thread:receiving_threads_) {
if (recv_thread.joinable()) {
cout << "joining first thread" << endl;
recv_thread.join();
}
}
+1 -1
View File
@@ -106,7 +106,7 @@ void ZmqReceiver::disconnect()
cout << " Disconnect." << endl;
#endif
receiver->disconnect(connect_address);
receiver->close();
context->close();
}