Merge branch 'add-forever-false-examples' into 'master'
Add forever=False to some examples to make them terminate See merge request poezio/slixmpp!46
This commit is contained in:
commit
bf69698af1
7 changed files with 7 additions and 7 deletions
|
@ -176,4 +176,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
|
@ -159,4 +159,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
|
@ -104,4 +104,4 @@ def on_session2(event):
|
|||
new_xmpp.add_event_handler('session_start', on_session2)
|
||||
|
||||
new_xmpp.connect()
|
||||
new_xmpp.process()
|
||||
new_xmpp.process(forever=False)
|
||||
|
|
|
@ -109,4 +109,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
|
@ -134,4 +134,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
|
@ -107,4 +107,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
|
@ -137,4 +137,4 @@ if __name__ == '__main__':
|
|||
|
||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||
xmpp.connect()
|
||||
xmpp.process()
|
||||
xmpp.process(forever=False)
|
||||
|
|
Loading…
Reference in a new issue