voloko / twitter-stream

Twitter realtime API client
MIT License
233 stars 81 forks source link

reconnect_retries not reset on a successful reconnection #6

Open timhaines opened 13 years ago

timhaines commented 13 years ago

To work around this, added @state = :init to unbind. This way when the reconnect occurred, receive_line treated it like a new connection again - and reset the reconnect_retries if a header was successfully read.