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:
@@ -38,9 +38,9 @@ class LocationBot(ClientXMPP):
|
||||
|
||||
self.current_tune = None
|
||||
|
||||
def start(self, event):
|
||||
async def start(self, event):
|
||||
self.send_presence()
|
||||
self.get_roster()
|
||||
await self.get_roster()
|
||||
self['xep_0115'].update_caps()
|
||||
|
||||
print("Using freegeoip.net to get geolocation.")
|
||||
|
||||
Reference in New Issue
Block a user