From 8f0e4adf502ceb07b39a6c575ada14c67b0b30f2 Mon Sep 17 00:00:00 2001 From: Brad Beeler Date: Fri, 30 Oct 2015 14:44:10 -0600 Subject: [PATCH] Update to stop streams not just remove them from local storage --- modules/RTC/RTC.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.js index 0742073c8..adef12e6b 100644 --- a/modules/RTC/RTC.js +++ b/modules/RTC/RTC.js @@ -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();