summaryrefslogtreecommitdiff
path: root/examples/custom_stanzas/custom_stanza_user.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_stanzas/custom_stanza_user.py')
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_user.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/custom_stanzas/custom_stanza_user.py b/examples/custom_stanzas/custom_stanza_user.py
index 66bad523..c5630584 100755
--- a/examples/custom_stanzas/custom_stanza_user.py
+++ b/examples/custom_stanzas/custom_stanza_user.py
@@ -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.')