Skip to content

Commit

Permalink
commited distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
mslosarz committed Sep 8, 2018
1 parent 1f2bc3d commit a7db076
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distribution/nextRTC.js
Expand Up @@ -372,7 +372,10 @@ var NextRTCClient = function () {
}, {
key: 'release',
value: function release(member) {
if (this.peerConnections[member]) this.peerConnections[member].close();
if (this.peerConnections[member]) {
this.peerConnections[member].close();
delete this.peerConnections[member];
}
}
}, {
key: 'leave',
Expand Down

0 comments on commit a7db076

Please sign in to comment.