Permalink
Browse files

Fixed double dispatch handling.

  • Loading branch information...
rauchg committed Jul 12, 2011
1 parent ad84520 commit aad29d5d9232b0c1ac174939abeccd01628e97b4
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/manager.js
View
@@ -324,18 +324,6 @@ Manager.prototype.onOpen = function (id) {
*/
Manager.prototype.onDispatch = function (room, packet, volatile, exceptions) {
// go through the users who have pending buffers
for (var i = 0, l = this.closedA.length; i < l; i++) {
if (!this.roomClients[this.closedA[i]]) continue;
if (this.roomClients[this.closedA[i]][room]) {
if (!~exceptions.indexOf(this.closedA[i])) {
this.closed[this.closedA[i]].push(packet);
}
}
}
// go through room clients
if (this.rooms[room]) {
for (var i = 0, l = this.rooms[room].length; i < l; i++) {
var id = this.rooms[room][i];

0 comments on commit aad29d5

Please sign in to comment.