summaryrefslogtreecommitdiff
path: root/examples/ping.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ping.py')
-rwxr-xr-xexamples/ping.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ping.py b/examples/ping.py
index cb1bb968..7870715c 100755
--- a/examples/ping.py
+++ b/examples/ping.py
@@ -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,
@@ -109,4 +109,4 @@ if __name__ == '__main__':
# Connect to the XMPP server and start processing XMPP stanzas.
xmpp.connect()
- xmpp.process()
+ xmpp.process(forever=False)