diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-09-21 18:42:51 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-09-28 23:58:46 +0200 |
commit | 49beb3ac08e1e5c954c0d21ed1a63060cbab236b (patch) | |
tree | 5ab1d5b4fbdc12fccdf3a05b5862c93be60d4460 | |
parent | e1c944d723baaf562497314737711b8c41f04a7e (diff) | |
download | slixmpp-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.
-rwxr-xr-x | examples/custom_stanzas/custom_stanza_user.py | 4 | ||||
-rwxr-xr-x | examples/download_avatars.py | 2 | ||||
-rwxr-xr-x | examples/send_client.py | 4 |
3 files changed, 3 insertions, 7 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.') diff --git a/examples/download_avatars.py b/examples/download_avatars.py index df722856..c6d8c59c 100755 --- a/examples/download_avatars.py +++ b/examples/download_avatars.py @@ -60,7 +60,7 @@ class AvatarDownloader(slixmpp.ClientXMPP): print('Waiting for presence updates...\n') self.presences_received.wait(15) - self.disconnect(wait=True) + self.disconnect() def on_vcard_avatar(self, pres): print("Received vCard avatar update from %s" % pres['from'].bare) diff --git a/examples/send_client.py b/examples/send_client.py index a3b11707..6e3e5865 100755 --- a/examples/send_client.py +++ b/examples/send_client.py @@ -58,9 +58,7 @@ class SendMsgBot(slixmpp.ClientXMPP): mbody=self.msg, mtype='chat') - # Using wait=True ensures that the send queue will be - # emptied before ending the session. - self.disconnect(wait=True) + self.disconnect() if __name__ == '__main__': |