mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 06:12:22 +02:00
Use close instead of disconnect for ZMQ shutdown
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ void ZmqReceiver::disconnect()
|
||||
cout << " Disconnect." << endl;
|
||||
#endif
|
||||
|
||||
receiver->disconnect(connect_address);
|
||||
receiver->close();
|
||||
context->close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user