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:
@@ -51,7 +51,7 @@ class PingTest(slixmpp.ClientXMPP):
|
||||
data.
|
||||
"""
|
||||
self.send_presence()
|
||||
self.get_roster()
|
||||
await self.get_roster()
|
||||
|
||||
try:
|
||||
rtt = await self['xep_0199'].ping(self.pingjid,
|
||||
|
||||
Reference in New Issue
Block a user