From 9186fd1a3c208b1df83617716fa5bed82daa7d24 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 5 Apr 2019 21:22:05 +0200 Subject: [PATCH] core (xmpp): use the cleaner stopTrying() instead of setting `continueTrying = 0` when connection is not possible due to invalid certificate. --- sat/core/xmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 49e7ded2..e131a5aa 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -313,7 +313,7 @@ class SatXMPPEntity(object): u"This should never happen and may indicate that " u"somebody is trying to spy on you.\n" u"Please contact your server administrator.")) - self.factory.continueTrying = 0 + self.factory.stopTrying() except (IndexError, TypeError): pass self.conn_deferred.errback(err)