diff options
author | Lance Stout <lancestout@gmail.com> | 2014-02-03 19:19:15 -0600 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-02-03 19:19:15 -0600 |
commit | d9db1b84fe03ff92653afede1c2f1da4f0868fe4 (patch) | |
tree | 81e477cef6daeaafdedad09ad5a5a9db7c3e15e4 /examples | |
parent | bd03f071c611225984223c6d942cab49b46bfcc8 (diff) | |
parent | 848e6ebd8329b8e3fec4d770794361b39d2aaa69 (diff) | |
download | slixmpp-d9db1b84fe03ff92653afede1c2f1da4f0868fe4.tar.gz slixmpp-d9db1b84fe03ff92653afede1c2f1da4f0868fe4.tar.bz2 slixmpp-d9db1b84fe03ff92653afede1c2f1da4f0868fe4.tar.xz slixmpp-d9db1b84fe03ff92653afede1c2f1da4f0868fe4.zip |
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/echo_client.py | 2 | ||||
-rwxr-xr-x | examples/ping.py | 2 |
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 |