diff options
author | Michael Trinque <miket@mavn.is> | 2014-08-10 16:02:10 -0700 |
---|---|---|
committer | Michael Trinque <miket@mavn.is> | 2014-08-10 16:02:10 -0700 |
commit | 3670d82f1c3ae78831574dbb4cd3138931ef4d5a (patch) | |
tree | 88541a2ca7276e115bf974504a643d940b762671 /sleekxmpp/plugins/xep_0009 | |
parent | e5582694c07236e6830c20361840360a1dde37f3 (diff) | |
download | slixmpp-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.py | 4 |
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): |