Skip to content
Snippets Groups Projects
Commit 3505c106 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

audio_receive_thread: do not reset onSuccessfulSetup_ while used

Nothing prevents setup() to be used while deleting onSuccessfulSetup_
So checking if (onSuccessfulSetup_) in setup() can cause a crash.
loop_.join() should prevent any call to onSuccessfulSetup_ and
any potential crash

Change-Id: I5fef00edbcc9701a3129a31b247472e62b6453d9
parent 1130d6a6
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,6 @@ AudioReceiveThread::AudioReceiveThread(const std::string& id,
AudioReceiveThread::~AudioReceiveThread()
{
onSuccessfulSetup_ = nullptr;
loop_.join();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment