stop the track in the "on-off" scenario

This commit is contained in:
Corey Frang authored and Michael "Z" Goddard committed 2018-04-10 13:59:22 -04:00
1 parent 825ff22fa4
commit ce03e978dc
1 file changed
+1
+1
View File
@@ -221,6 +221,7 @@ class Video {
}, stream => {
// if we disabled video in the meantime...
if (!this._video) {
stream.getTracks()[0].stop();
this._singleSetup = null;
return;
}