summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/handler/coroutine_callback.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/xmlstream/handler/coroutine_callback.py')
-rw-r--r--slixmpp/xmlstream/handler/coroutine_callback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/handler/coroutine_callback.py b/slixmpp/xmlstream/handler/coroutine_callback.py
index 8ad9572e..1ca4ab0a 100644
--- a/slixmpp/xmlstream/handler/coroutine_callback.py
+++ b/slixmpp/xmlstream/handler/coroutine_callback.py
@@ -78,7 +78,7 @@ class CoroutineCallback(BaseHandler):
:meth:`prerun()`. Defaults to ``False``.
"""
if not self._instream or instream:
- asyncio.async(self._pointer(payload))
+ asyncio.ensure_future(self._pointer(payload))
if self._once:
self._destroy = True
del self._pointer