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): def disable_keepalive(self, event=None):
self.xmpp.scheduler.remove('Ping keepalive') self.xmpp.scheduler.remove('Ping keepalive')
def _keepalive(self, event): def _keepalive(self, event=None):
log.debug("Keepalive ping...") log.debug("Keepalive ping...")
try: try:
rtt = self.ping(self.xmpp.boundjid.host, self.timeout) rtt = self.ping(self.xmpp.boundjid.host, self.timeout)