summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-01-26 17:21:13 +0100
committermathieui <mathieui@mathieui.net>2012-01-26 17:21:13 +0100
commitbbcd9c631ca6b47ad07eedc3ded9909045d6cc9e (patch)
tree649af9437eef2cfebe643a2dc05b4f654485505a /src
parent7433510470beaa8f009a14d57952133e7dff82b0 (diff)
downloadpoezio-bbcd9c631ca6b47ad07eedc3ded9909045d6cc9e.tar.gz
poezio-bbcd9c631ca6b47ad07eedc3ded9909045d6cc9e.tar.bz2
poezio-bbcd9c631ca6b47ad07eedc3ded9909045d6cc9e.tar.xz
poezio-bbcd9c631ca6b47ad07eedc3ded9909045d6cc9e.zip
Add an auto_reconnect option
Diffstat (limited to 'src')
-rw-r--r--src/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index 352a1d5b..1079b5a6 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -42,7 +42,7 @@ class Connection(sleekxmpp.ClientXMPP):
password = None
sleekxmpp.ClientXMPP.__init__(self, jid, password, ssl=True)
self.core = None
- self.auto_reconnect = False
+ self.auto_reconnect = True if config.get('auto_reconnect', 'false').lower() in ('true', '1') else False
self.auto_authorize = None
self.register_plugin('xep_0030')
self.register_plugin('xep_0004')