summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0199/ping.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-10-09 12:34:56 +0200
committermathieui <mathieui@mathieui.net>2018-10-09 12:34:56 +0200
commit809c50000204f8724bac80cb3359a690fdbc839e (patch)
tree6212494e366fd6fc6138993bca86df67f70717e7 /slixmpp/plugins/xep_0199/ping.py
parentdda4e18b810e5f76bca78c80dfb8a3d32e4b5bcf (diff)
downloadslixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.gz
slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.bz2
slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.tar.xz
slixmpp-809c50000204f8724bac80cb3359a690fdbc839e.zip
Add the loop parameters at places where it has been forgotten
Diffstat (limited to 'slixmpp/plugins/xep_0199/ping.py')
-rw-r--r--slixmpp/plugins/xep_0199/ping.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0199/ping.py b/slixmpp/plugins/xep_0199/ping.py
index 1153389b..f1070305 100644
--- a/slixmpp/plugins/xep_0199/ping.py
+++ b/slixmpp/plugins/xep_0199/ping.py
@@ -95,7 +95,10 @@ class XEP_0199(BasePlugin):
self.timeout = timeout
self.keepalive = True
- handler = lambda event=None: asyncio.ensure_future(self._keepalive(event))
+ handler = lambda event=None: asyncio.ensure_future(
+ self._keepalive(event),
+ loop=self.xmpp.loop,
+ )
self.xmpp.schedule('Ping keepalive',
self.interval,
handler,