summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2019-03-26 11:09:24 +0100
committerGeorg Lukas <georg@op-co.de>2019-03-26 12:09:43 +0100
commit6b1b58a33944c141d6cd504d045205b95c0969f5 (patch)
treef7a4206d2e5e6ee519ed44b51dee9cdfad2f3af3
parent4f96e5fa75773f8f3c5df849edfca8315d746905 (diff)
downloadslixmpp-6b1b58a33944c141d6cd504d045205b95c0969f5.tar.gz
slixmpp-6b1b58a33944c141d6cd504d045205b95c0969f5.tar.bz2
slixmpp-6b1b58a33944c141d6cd504d045205b95c0969f5.tar.xz
slixmpp-6b1b58a33944c141d6cd504d045205b95c0969f5.zip
XEP-0199: use new 0-timeout reconnect() with reason
-rw-r--r--slixmpp/plugins/xep_0199/ping.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0199/ping.py b/slixmpp/plugins/xep_0199/ping.py
index f1070305..adbf2203 100644
--- a/slixmpp/plugins/xep_0199/ping.py
+++ b/slixmpp/plugins/xep_0199/ping.py
@@ -112,9 +112,9 @@ class XEP_0199(BasePlugin):
try:
rtt = await self.ping(self.xmpp.boundjid.host, timeout=self.timeout)
except IqTimeout:
- log.debug("Did not receive ping back in time." + \
+ log.debug("Did not receive ping back in time. " + \
"Requesting Reconnect.")
- self.xmpp.reconnect()
+ self.xmpp.reconnect(0.0, "Ping timeout after %ds" % self.timeout)
else:
log.debug('Keepalive RTT: %s' % rtt)