Fix ping event issue.
This commit is contained in:
parent
ef9c8e910c
commit
7f42d15175
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user