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 // Wait a bit for the peer to leave, but end connection if it's still here
// after 2 seconds // after 2 seconds
setTimeout(function(){ setTimeout(function(){
if (peers[data.id]){ if (peers[data.payload.id]){
peers[data.id].obj.end(); peers[data.payload.id].obj.end();
} }
}, 2000); }, 2000);
} }

Loading…
Cancel
Save