Examples fixes
This commit is contained in:
parent
12995e280e
commit
cebfd84416
2 changed files with 2 additions and 2 deletions
|
@ -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.")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue