Update examples to use the block'' argument instead of the deprecated threaded''.
This commit is contained in:
@@ -136,7 +136,7 @@ if __name__ == '__main__':
|
||||
#
|
||||
# if xmpp.connect(('talk.google.com', 5222)):
|
||||
# ...
|
||||
xmpp.process(threaded=False)
|
||||
xmpp.process(block=True)
|
||||
print("Done")
|
||||
else:
|
||||
print("Unable to connect.")
|
||||
|
||||
Reference in New Issue
Block a user