summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-01-21 12:05:02 -0800
committerLance Stout <lancestout@gmail.com>2014-01-21 12:05:02 -0800
commitd002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea (patch)
tree281423462233ada0be64f93b94b40f29c9b0b0b4 /examples
parent12995e280e7dcb9a34933d9e4fa3614d1b958eaa (diff)
parent7c03cc622c8f00768097d8170887aefdad1d57c6 (diff)
downloadslixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.gz
slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.bz2
slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.xz
slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.zip
Merge pull request #274 from anton-ryzhov/fixes
Examples and thread counting
Diffstat (limited to 'examples')
-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 18125a0d..f2d38847 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 8fbb5655..1a1c2e94 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