summaryrefslogtreecommitdiff
path: root/examples/custom_stanzas
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-21 18:42:51 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-09-28 23:58:46 +0200
commit49beb3ac08e1e5c954c0d21ed1a63060cbab236b (patch)
tree5ab1d5b4fbdc12fccdf3a05b5862c93be60d4460 /examples/custom_stanzas
parente1c944d723baaf562497314737711b8c41f04a7e (diff)
downloadslixmpp-49beb3ac08e1e5c954c0d21ed1a63060cbab236b.tar.gz
slixmpp-49beb3ac08e1e5c954c0d21ed1a63060cbab236b.tar.bz2
slixmpp-49beb3ac08e1e5c954c0d21ed1a63060cbab236b.tar.xz
slixmpp-49beb3ac08e1e5c954c0d21ed1a63060cbab236b.zip
Don’t set the wait time to True instead of leaving its float default, in examples.
Diffstat (limited to 'examples/custom_stanzas')
-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.')