Permalink
Browse files

Merge pull request #8 from relekang/no-reconnect-after-forceclose

stop reconnecting after close() is called
  • Loading branch information...
2 parents e86719b + d7fae3d commit 1258c3657e60b0d185f45bdff3ff50fcaeba0458 @joewalnes committed Mar 7, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 reconnecting-websocket.js
@@ -155,8 +155,8 @@ function ReconnectingWebSocket(url, protocols) {
};
this.close = function() {
+ forcedClose = true;
if (ws) {
- forcedClose = true;
ws.close();
}
};

0 comments on commit 1258c36

Please sign in to comment.