SDK: Fix race condition which lead to frequent segfaults on destruction

This commit is contained in:
Dennis Klein 2019-08-28 20:22:48 +02:00 committed by Dennis Klein
parent fd77f2b729
commit 5b47df3014

View File

@ -183,6 +183,7 @@ class BasicTopology : public AsioBase<Executor, Allocator>
~BasicTopology()
{
std::lock_guard<std::mutex> lk(fMtx);
fDDSSession.UnsubscribeFromCommands();
try {
fChangeStateOp.Cancel(fState);