diff --git a/examples/adhoc_provider.py b/examples/adhoc_provider.py index aaa9a6e..4d4c361 100755 --- a/examples/adhoc_provider.py +++ b/examples/adhoc_provider.py @@ -199,7 +199,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.") diff --git a/examples/adhoc_user.py b/examples/adhoc_user.py index 1701306..0bc03c1 100755 --- a/examples/adhoc_user.py +++ b/examples/adhoc_user.py @@ -205,7 +205,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.") diff --git a/examples/disco_browser.py b/examples/disco_browser.py index 628add1..6023dd7 100755 --- a/examples/disco_browser.py +++ b/examples/disco_browser.py @@ -195,6 +195,6 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) else: print("Unable to connect.") diff --git a/examples/echo_client.py b/examples/echo_client.py index 02ede14..cbb0468 100755 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -139,7 +139,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.") diff --git a/examples/echo_component.py b/examples/echo_component.py index f569e00..d8bcd75 100755 --- a/examples/echo_component.py +++ b/examples/echo_component.py @@ -116,7 +116,7 @@ if __name__ == '__main__': # Connect to the XMPP server and start processing XMPP stanzas. if xmpp.connect(): - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/muc.py b/examples/muc.py index 24555d7..7af3744 100755 --- a/examples/muc.py +++ b/examples/muc.py @@ -182,7 +182,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.") diff --git a/examples/ping.py b/examples/ping.py index d274989..d5622ff 100755 --- a/examples/ping.py +++ b/examples/ping.py @@ -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.") diff --git a/examples/proxy_echo_client.py b/examples/proxy_echo_client.py index eeeb4fb..1f4ba9d 100755 --- a/examples/proxy_echo_client.py +++ b/examples/proxy_echo_client.py @@ -163,7 +163,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.") diff --git a/examples/roster_browser.py b/examples/roster_browser.py index e145338..7926b09 100644 --- a/examples/roster_browser.py +++ b/examples/roster_browser.py @@ -167,7 +167,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) else: print("Unable to connect.") diff --git a/examples/send_client.py b/examples/send_client.py index 1ddac65..94bb584 100755 --- a/examples/send_client.py +++ b/examples/send_client.py @@ -138,7 +138,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.")