summaryrefslogtreecommitdiff
path: root/examples/IoT_TestDevice.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-27 00:20:31 +0100
committermathieui <mathieui@mathieui.net>2021-01-27 00:20:31 +0100
commit370abb1d983bf1aabff523d4bbc5c9b89a2becb8 (patch)
tree0d191cd7f9f47101fa2fb835760651bf5dee736e /examples/IoT_TestDevice.py
parent70b508101896e8076228059fdd4726c2c39fa831 (diff)
parent51866f0d46a932f2b720bc876eb4bef50cfb277d (diff)
downloadslixmpp-370abb1d983bf1aabff523d4bbc5c9b89a2becb8.tar.gz
slixmpp-370abb1d983bf1aabff523d4bbc5c9b89a2becb8.tar.bz2
slixmpp-370abb1d983bf1aabff523d4bbc5c9b89a2becb8.tar.xz
slixmpp-370abb1d983bf1aabff523d4bbc5c9b89a2becb8.zip
Merge branch 'block-threaded-examples-docs' into 'master'
Remove the remaining block and threaded from examples See merge request poezio/slixmpp!105
Diffstat (limited to 'examples/IoT_TestDevice.py')
-rwxr-xr-xexamples/IoT_TestDevice.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py
index b9546017..d8e8fd06 100755
--- a/examples/IoT_TestDevice.py
+++ b/examples/IoT_TestDevice.py
@@ -168,13 +168,13 @@ if __name__ == '__main__':
xmpp.beClientOrServer(server=True)
while not(xmpp.testForRelease()):
xmpp.connect()
- xmpp.process(block=True)
+ xmpp.process(forever=False)
logging.debug("lost connection")
if args.sensorjid:
logging.debug("will try to call another device for data")
xmpp.beClientOrServer(server=False,clientJID=args.sensorjid)
xmpp.connect()
- xmpp.process(block=True)
+ xmpp.process(forever=False)
logging.debug("ready ending")
else: