mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: Fix race condition which lead to frequent segfaults on destruction
This commit is contained in:
committed by
Dennis Klein
parent
fd77f2b729
commit
5b47df3014
@@ -183,6 +183,7 @@ class BasicTopology : public AsioBase<Executor, Allocator>
|
||||
|
||||
~BasicTopology()
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(fMtx);
|
||||
fDDSSession.UnsubscribeFromCommands();
|
||||
try {
|
||||
fChangeStateOp.Cancel(fState);
|
||||
|
Reference in New Issue
Block a user