Add forever=False to some examples to make them terminate
This commit is contained in:
parent
0d3116dbdf
commit
d076cef023
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
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.add_event_handler('session_start', on_session2)
|
||||||
|
|
||||||
new_xmpp.connect()
|
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
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.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process(forever=False)
|
||||||
|
|
Loading…
Reference in a new issue