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 b35d39c248
commit 8f0e4adf50
1 changed files with 1 additions and 2 deletions

View File

@ -159,8 +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());
this.stopMediaStream(stream.getOriginalStream());
}
if (eventEmitter) {
eventEmitter.removeAllListeners();