aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Ryzhov2014-01-21 12:19:27 (GMT)
committerAnton Ryzhov2014-01-21 12:19:27 (GMT)
commitcebfd844167cdb334c475bb579c32905e68159bc (patch)
treedb826c96ad14dd375d94e8204bf2514d50baec77
parent12995e280e7dcb9a34933d9e4fa3614d1b958eaa (diff)
downloadslixmpp-cebfd844167cdb334c475bb579c32905e68159bc.tar.gz
slixmpp-cebfd844167cdb334c475bb579c32905e68159bc.tar.xz
Examples fixes
-rwxr-xr-xexamples/echo_client.py2
-rwxr-xr-xexamples/ping.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo_client.py b/examples/echo_client.py
index 18125a0..f2d3884 100755
--- a/examples/echo_client.py
+++ b/examples/echo_client.py
@@ -151,7 +151,7 @@ if __name__ == '__main__':
#
# if xmpp.connect(('talk.google.com', 5222)):
# ...
- xmpp.process(block=False)
+ xmpp.process(block=True)
print("Done")
else:
print("Unable to connect.")
diff --git a/examples/ping.py b/examples/ping.py
index 8fbb565..1a1c2e9 100755
--- a/examples/ping.py
+++ b/examples/ping.py
@@ -37,7 +37,7 @@ class PingTest(sleekxmpp.ClientXMPP):
def __init__(self, jid, password, pingjid):
sleekxmpp.ClientXMPP.__init__(self, jid, password)
if pingjid is None:
- pingjid = self.jid
+ pingjid = self.boundjid.bare
self.pingjid = pingjid
# The session_start event will be triggered when