Change session_start callback to async in most examples

If we fetch the roster, we should probably wait until we get it back
This commit is contained in:
mathieui
2020-05-02 16:47:04 +02:00
parent e520ab1f5e
commit f1ab9ab964
19 changed files with 33 additions and 37 deletions

View File

@@ -38,8 +38,8 @@ class PubsubEvents(slixmpp.ClientXMPP):
# self.add_event_handler('event_prefix_purge', handler)
# self.add_event_handler('event_prefix_delete', handler)
def start(self, event):
self.get_roster()
async def start(self, event):
await self.get_roster()
self.send_presence()
def _publish(self, msg):