stop the track in the "on-off" scenario

This commit is contained in:
Corey Frang 2018-04-05 13:31:17 -04:00 committed by Michael "Z" Goddard
parent 825ff22fa4
commit ce03e978dc
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

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;
}