Update to stop streams not just remove them from local storage

This commit is contained in:
Brad Beeler 2015-10-30 14:44:10 -06:00 committed by Mike Girard
parent aee03026b0
commit b35d39c248
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ var RTC = {
// Remove all local streams on cleanup
while (this.localStreams.length > 0) {
var stream = this.localStreams[0];
this.stopLocalStream(stream.getOriginalStream());
this.removeLocalStream(stream.getOriginalStream());
}
if (eventEmitter) {