Set auto_reconnect to True by default

This commit is contained in:
Florent Le Coz 2014-12-04 15:30:18 +01:00
parent a208dc87ee
commit 0800c666eb
4 changed files with 6 additions and 6 deletions

View file

@ -73,7 +73,7 @@ ca_cert_path =
# Auto-reconnects you when you get disconnected from the server
# defaults to false because it should not be necessary
auto_reconnect = false
auto_reconnect = true
# The time between the ping sent to the server to check if the connection is alive
connection_check_interval = 60

View file

@ -220,10 +220,10 @@ well, but you will at least want to know when you get disconnected.
auto_reconnect
**Default value:** ``false``
**Default value:** ``true``
Auto-reconnects you when you get disconnected. Should not be necessary, so
the default is false.
Auto-reconnects you when you get disconnected from the
server. Poezio will try to reconnect forever, until it succeeds.
connection_check_interval

View file

@ -28,7 +28,7 @@ DEFAULT_CONFIG = {
'add_space_after_completion': True,
'after_completion': ',',
'alternative_nickname': '',
'auto_reconnect': False,
'auto_reconnect': True,
'autorejoin_delay': '5',
'autorejoin': False,
'beep_on': 'highlight private invite',

View file

@ -855,7 +855,7 @@ def on_disconnected(self, event):
for tab in self.get_tabs(tabs.MucTab):
tab.disconnect()
self.information(_("Disconnected from server."), _('Error'))
if not self.legitimate_disconnect and config.get('auto_reconnect', False):
if not self.legitimate_disconnect and config.get('auto_reconnect', True):
self.information(_("Auto-reconnecting."), _('Info'))
self.xmpp.connect()