From 01abd6a705ef33bcdc32b3079091cf8dc6aa8438 Mon Sep 17 00:00:00 2001 From: Patrick Horn Date: Wed, 6 Mar 2013 21:35:07 -0800 Subject: Correct argument order by using keyword for keepalive. --- sleekxmpp/plugins/xep_0199/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/plugins/xep_0199/ping.py b/sleekxmpp/plugins/xep_0199/ping.py index b024880e..3987c19e 100644 --- a/sleekxmpp/plugins/xep_0199/ping.py +++ b/sleekxmpp/plugins/xep_0199/ping.py @@ -106,7 +106,7 @@ class XEP_0199(BasePlugin): def _keepalive(self, event=None): log.debug("Keepalive ping...") try: - rtt = self.ping(self.xmpp.boundjid.host, self.timeout) + rtt = self.ping(self.xmpp.boundjid.host, timeout=self.timeout) except IqTimeout: log.debug("Did not recieve ping back in time." + \ "Requesting Reconnect.") -- cgit v1.2.3