Skip to content

Commit

Permalink
Fixed issue socketio#438 which caused high rate of "client not handsh…
Browse files Browse the repository at this point in the history
…aken should reconnect" - With correct indentation :p
  • Loading branch information
jondubois committed Dec 28, 2012
1 parent 3cbe0f3 commit fb17aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manager.js
Expand Up @@ -795,10 +795,10 @@ Manager.prototype.handleHandshake = function (data, req, res) {
res.writeHead(200, headers);
}

res.end(hs);

self.onHandshake(id, newData || handshakeData);
self.store.publish('handshake', id, newData || handshakeData);

res.end(hs);

self.log.info('handshake authorized', id);
} else {
Expand Down

0 comments on commit fb17aa6

Please sign in to comment.