Fix peer stream end

Terminate connection with the kicked peer, not the owner kicking it ;-)
master
Daniel Berteaud 11 years ago
parent 299b3393e4
commit 7da38b5d2e
  1. 4
      public/js/vroom.js

@ -519,8 +519,8 @@ function initVroom(room) {
// Wait a bit for the peer to leave, but end connection if it's still here
// after 2 seconds
setTimeout(function(){
if (peers[data.id]){
peers[data.id].obj.end();
if (peers[data.payload.id]){
peers[data.payload.id].obj.end();
}
}, 2000);
}

Loading…
Cancel
Save