Commit 30ac60ec authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13731: video: reset threads if disabled

parent 556bbb97
...@@ -136,6 +136,7 @@ void VideoRtpSession::start() ...@@ -136,6 +136,7 @@ void VideoRtpSession::start()
sendThread_->start(); sendThread_->start();
} else { } else {
DEBUG("Video sending disabled"); DEBUG("Video sending disabled");
sendThread_.reset();
} }
if (receiving_) { if (receiving_) {
...@@ -146,6 +147,7 @@ void VideoRtpSession::start() ...@@ -146,6 +147,7 @@ void VideoRtpSession::start()
receiveThread_->start(); receiveThread_->start();
} else { } else {
DEBUG("Video receiving disabled"); DEBUG("Video receiving disabled");
receiveThread_.reset();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment