summaryrefslogtreecommitdiff
path: root/poezio/core/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-08-20 13:13:23 +0200
committermathieui <mathieui@mathieui.net>2016-08-20 13:13:23 +0200
commit11b193fb3614fb750c8abab1312f5c33cf9c0833 (patch)
tree5a7c1fa89ea05d56433e1dd9844becb3a45e4a5e /poezio/core/core.py
parent04939cc6c376c9de61e1eecb158c0f276c6bdf96 (diff)
downloadpoezio-11b193fb3614fb750c8abab1312f5c33cf9c0833.tar.gz
poezio-11b193fb3614fb750c8abab1312f5c33cf9c0833.tar.bz2
poezio-11b193fb3614fb750c8abab1312f5c33cf9c0833.tar.xz
poezio-11b193fb3614fb750c8abab1312f5c33cf9c0833.zip
Fix #3219, Fix #3220 (no connection loops on some stream errors)
Do not reconnect if the stream error is a conflict or an host-unknown; also add a sleep(1) in order to not DoS the server if it loops on other conditions.
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r--poezio/core/core.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index bcc64d1a..e4f4687d 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -62,6 +62,7 @@ class Core(object):
# of being displayed on the screen and exiting the program.
sys.excepthook = self.on_exception
self.connection_time = time.time()
+ self.last_stream_error = None
self.stdscr = None
status = config.get('status')
status = POSSIBLE_SHOW.get(status, None)