Use a timer to try reconnecting to the XMPP server only each 2 seconds

When the connection is lost, immediately try to reconnect, then try to
reconnect every 2 seconds.  This is much better than the previous “Try to
re-connect as fast as possible”.
This commit is contained in:
Florent Le Coz
2015-02-21 06:45:11 +01:00
parent 3032dc3580
commit a50ca30e76
6 changed files with 38 additions and 4 deletions
+2
View File
@@ -7,6 +7,8 @@ Version 2.0
- Setting a participant's role/affiliation now results in a change of IRC
mode, instead of being ignored. Setting Toto's affiliation to admin is
now equivalent to “/mode +o Toto”
- Fix the reconnection to the XMPP server to try every 2 seconds
instead of immediately. This avoid hogging resources for nothing
Version 1.1 2014-16-07