Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #141 from pokermania/to_learnboost_20130130

close socket if upgrade is received and socket.readyState != open
  • Loading branch information...
commit 1059147fa3b11f25ee5f7d0a0729c1a433ae28af 2 parents 59281c0 + 4ef4099
@rauchg rauchg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/socket.js
View
2  lib/socket.js
@@ -185,7 +185,7 @@ Socket.prototype.maybeUpgrade = function (transport) {
}
checkInterval = setInterval(check, 100);
- } else if ('upgrade' == packet.type) {
+ } else if ('upgrade' == packet.type && self.readyState == 'open') {
debug('got upgrade packet - upgrading');
self.upgraded = true;
self.emit('upgrade', transport);
Please sign in to comment.
Something went wrong with that request. Please try again.