diff options
author | Maxime Buquet <pep@bouah.net> | 2019-04-07 00:24:50 +0200 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2019-04-07 00:24:50 +0200 |
commit | 9612e518fb1b20c7ae2cde7278e403f3e449b3a6 (patch) | |
tree | 0ade09a918e73f6b13b6af9c4ed5a152cb546c01 /slixmpp/plugins | |
parent | fde826419129e07b9db9f4c59f98582e8c845f7e (diff) | |
parent | 704161a285847c633fbe7edca56cfefc0f63c15e (diff) | |
download | slixmpp-9612e518fb1b20c7ae2cde7278e403f3e449b3a6.tar.gz slixmpp-9612e518fb1b20c7ae2cde7278e403f3e449b3a6.tar.bz2 slixmpp-9612e518fb1b20c7ae2cde7278e403f3e449b3a6.tar.xz slixmpp-9612e518fb1b20c7ae2cde7278e403f3e449b3a6.zip |
Merge branch 'master' into 'master'
Communicate the reason for a disconnect to the application
See merge request poezio/slixmpp!12
Diffstat (limited to 'slixmpp/plugins')
-rw-r--r-- | slixmpp/plugins/xep_0199/ping.py | 4 |
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) |