summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0009
diff options
context:
space:
mode:
authorMichael Trinque <miket@mavn.is>2014-08-10 16:02:10 -0700
committerMichael Trinque <miket@mavn.is>2014-08-10 16:02:10 -0700
commit3670d82f1c3ae78831574dbb4cd3138931ef4d5a (patch)
tree88541a2ca7276e115bf974504a643d940b762671 /sleekxmpp/plugins/xep_0009
parente5582694c07236e6830c20361840360a1dde37f3 (diff)
downloadslixmpp-3670d82f1c3ae78831574dbb4cd3138931ef4d5a.tar.gz
slixmpp-3670d82f1c3ae78831574dbb4cd3138931ef4d5a.tar.bz2
slixmpp-3670d82f1c3ae78831574dbb4cd3138931ef4d5a.tar.xz
slixmpp-3670d82f1c3ae78831574dbb4cd3138931ef4d5a.zip
Added wait param to XEP_0009 RemoteSession.close
This parameter is False by default to preserve existing behavior.
Diffstat (limited to 'sleekxmpp/plugins/xep_0009')
-rw-r--r--sleekxmpp/plugins/xep_0009/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0009/remote.py b/sleekxmpp/plugins/xep_0009/remote.py
index 8c08e8f3..8847ff24 100644
--- a/sleekxmpp/plugins/xep_0009/remote.py
+++ b/sleekxmpp/plugins/xep_0009/remote.py
@@ -569,11 +569,11 @@ class RemoteSession(object):
self._register_callback(pid, callback)
iq.send()
- def close(self):
+ def close(self, wait=False):
'''
Closes this session.
'''
- self._client.disconnect(False)
+ self._client.disconnect(wait=wait)
self._session_close_callback()
def _on_jabber_rpc_method_call(self, iq):