Commit 0800c666 authored by louiz’'s avatar louiz’

Set auto_reconnect to True by default

parent a208dc87
......@@ -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
......
......@@ -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
......
......@@ -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',
......
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment