ircanywhere / irc-factory

A rebuilt irc-factory from simple-irc-socket and irc-message. Get support at #ircanywhere on freenode
https://ircanywhere.com
MIT License
60 stars 14 forks source link

Fix reconnect loop #23

Closed rodms10 closed 10 years ago

rodms10 commented 10 years ago

Fix 2 different issues that were causing a reconnect loop after timeout.

First when sending a closed event, reconnecting property was being set to false when a timeout occurred. This caused ircanywhere to destroy the client after every reconnect attempt.

Second, once a timeout occurred _lastTime was not being updated, causing a timeout as soon as we first check for it a few seconds after registering.