Permalink
Browse files

Calling mayReconnect one more time to allow reconnect_failed to be fi…

…red.
  • Loading branch information...
1 parent 63f1838 commit d63b999e617d484b7948f5b7e44e3cba583d3420 gabriel committed Jan 19, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/socket.js
View
@@ -551,6 +551,8 @@
self.transport = self.getTransport();
self.redoTransports = true;
self.connect();
+ self.publish('reconnecting', self.reconnectionDelay, self.reconnectionAttempts);
+ self.reconnectionTimer = setTimeout(maybeReconnect, self.reconnectionDelay);
} else {
self.publish('reconnect_failed');
reset();

0 comments on commit d63b999

Please sign in to comment.