Use ensure_future instead of async

This commit is contained in:
louiz’ committed 2016-10-21 01:05:15 +02:00
1 parent 4388b9c311
commit a4d67ce041
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ class XMPPComponent(slixmpp.BaseXMPP):
self.add_event_handler("session_end", self.on_end_session)
asyncio.async(self.accept_routine())
asyncio.ensure_future(self.accept_routine())
self.scenario = scenario
self.biboumi = biboumi