improve comment

pull/21833/head
Michael Telatynski 2018-05-29 12:07:56 +01:00 committed by GitHub
parent 5147246c17
commit 05357b9f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ module.exports = React.createClass({
_refreshMediaDevices: function(stream) {
if (stream) {
// kill stream so that we don't leave it lingering around with webcam enabled etc
// as here we called gUM to ask user for permission to their device names only
stream.getTracks().forEach((track) => track.stop());
}