stop reconnecting after close() is called #8

Merged
merged 1 commit into from Mar 7, 2014

3 participants

@relekang

If close() is called when the websocket connection is down it should not try to reconnect. There are at least two reasons to avoid this. It should not send a lot of unnecessary requests and if it is able to reconnect the connection will go live again even if the application using reconnecting-websocket tried to close it.

@relekang relekang stop reconnecting after force close
If close() is called when the websocket connection is down it should not try to
reconnect.
d7fae3d
@pablocaselas

+1 .Thanks @relekang for the fix 👍

Why isn't this pull request accepted yet?

@joewalnes joewalnes merged commit 1258c36 into joewalnes:master Mar 7, 2014
@joewalnes
Owner

Thanks! It got lost somewhere in my inbox. Merged now :)

@pablocaselas

Cool. Thanks @joewalnes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment