voloko/twitter-stream

reconnect_retries not reset on a successful reconnection

timhaines opened this issue · 0 comments

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.