Skip to content
Snippets Groups Projects
Commit f0a7fe36 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

audiortp: call join after calling stop on RtpThread

That way we're guaranteed that it is safe to delete it after.
parent 7c8c258d
Branches
Tags
No related merge requests found
...@@ -78,6 +78,7 @@ class AudioSymmetricRtpSession : public ost::TimerPort, public ost::SymmetricRTP ...@@ -78,6 +78,7 @@ class AudioSymmetricRtpSession : public ost::TimerPort, public ost::SymmetricRTP
void stopSymmetricRtpThread (void) { void stopSymmetricRtpThread (void) {
assert(_rtpThread); assert(_rtpThread);
_rtpThread->running = false; _rtpThread->running = false;
_rtpThread->join();
} }
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment