Permalink
Browse files

No point going to `impermanentlyClosing`. Let onclose cb transition m…

…achine to `waiting`.

* `impermanentlyClosing` is responsible for closing the socket.  Since this has already happened, this is pointless.
  • Loading branch information...
maryrosecook committed Apr 19, 2012
1 parent b74a64e commit db6f70a9d1cc5b46c0ab268748d5be31899f1084
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/pusher_connection.js
View
@@ -401,7 +401,6 @@
self._machine.transition('waiting');
}
- self._machine.transition('impermanentlyClosing');
function ws_onError(error) {
// just emit error to user - socket will already be closed by browser
self.emit('error', { type: 'WebSocketError', error: error });

0 comments on commit db6f70a

Please sign in to comment.