From 11b193fb3614fb750c8abab1312f5c33cf9c0833 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 20 Aug 2016 13:13:23 +0200 Subject: 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. --- poezio/core/core.py | 1 + 1 file changed, 1 insertion(+) (limited to 'poezio/core/core.py') 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) -- cgit v1.2.3