Minor bugfixes

This commit is contained in:
Christoph Oberhofer
2016-03-20 22:54:58 +01:00
parent 49f1e3db32
commit 040f3e5704
5 changed files with 113 additions and 107 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export default {
},
release: function() {
var tracks = streamRef && streamRef.getVideoTracks();
if (tracks.length) {
if (tracks && tracks.length) {
tracks[0].stop();
}
streamRef = null;