mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Clear channels & transports containers in Reset()
This commit is contained in:
committed by
Dennis Klein
parent
5c943bbedb
commit
937c9e8921
@@ -836,21 +836,15 @@ void FairMQDevice::ResetTaskWrapper()
|
||||
|
||||
void FairMQDevice::ResetWrapper()
|
||||
{
|
||||
for (auto& t : fTransports) {
|
||||
t.second->Reset();
|
||||
}
|
||||
|
||||
// iterate over the channels map
|
||||
for (auto& mi : fChannels) {
|
||||
// iterate over the channels vector
|
||||
for (auto& vi : mi.second) {
|
||||
// vi.fReset = true;
|
||||
vi.fSocket.reset(); // destroy FairMQSocket
|
||||
}
|
||||
for (auto& transport : fTransports) {
|
||||
transport.second->Reset();
|
||||
}
|
||||
|
||||
Reset();
|
||||
|
||||
fChannels.clear();
|
||||
fTransports.clear();
|
||||
fTransportFactory.reset();
|
||||
ChangeState(Transition::Auto);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user