Permalink
Browse files

return client details with error, emit another disconnect event

  • Loading branch information...
1 parent 9504144 commit c807da114e420622f7fe7e63b3a5a5139519c385 @bjyoungblood bjyoungblood committed Dec 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/server-connection.js
View
@@ -388,6 +388,7 @@ var serverConnection = function(socket, server, closeConnectionServerCallback, c
self.closeConnectionServerCallback(self.connection_id);
}
+ self.emit('disconnect', self);
self.destroy();
};
@@ -413,7 +414,7 @@ var serverConnection = function(socket, server, closeConnectionServerCallback, c
}
self.destroy();
- self.emit('error', e);
+ self.emit('error', self, e);
};
};

0 comments on commit c807da1

Please sign in to comment.