Avoid incorrect debug output order.

This commit is contained in:
Guillermo Rauch
2012-01-13 15:30:15 -08:00
parent 0c79fcacbc
commit bd7d01a190

View File

@@ -172,11 +172,13 @@ Server.prototype.handleRequest = function (req, res) {
*/
Server.prototype.handshake = function (transport, req) {
var id = this.id()
, socket = new Socket(id, this, new transports[transport](req))
, self = this
var id = this.id();
debug('handshaking client "%d"', id);
var socket = new Socket(id, this, new transports[transport](req))
, self = this
this.clients[id] = socket;
this.clientsCount++;
this.emit('connection', socket);