Fix ping event issue.

This commit is contained in:
Lance Stout 2013-01-26 14:12:44 -08:00
parent ef9c8e910c
commit 7f42d15175

View file

@ -103,7 +103,7 @@ class XEP_0199(BasePlugin):
def disable_keepalive(self, event=None):
self.xmpp.scheduler.remove('Ping keepalive')
def _keepalive(self, event):
def _keepalive(self, event=None):
log.debug("Keepalive ping...")
try:
rtt = self.ping(self.xmpp.boundjid.host, self.timeout)