Don’t set the wait time to True instead of leaving its float default, in examples.
This commit is contained in:
committed by
Florent Le Coz
parent
e1c944d723
commit
49beb3ac08
@@ -83,9 +83,7 @@ class ActionUserBot(slixmpp.ClientXMPP):
|
||||
iq2['action']['method'] = 'bye'
|
||||
iq2.send(block=False)
|
||||
|
||||
# The wait=True delays the disconnect until the queue
|
||||
# of stanzas to be sent becomes empty.
|
||||
self.disconnect(wait=True)
|
||||
self.disconnect()
|
||||
except XMPPError:
|
||||
print('There was an error sending the custom action.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user