From 3670d82f1c3ae78831574dbb4cd3138931ef4d5a Mon Sep 17 00:00:00 2001 From: Michael Trinque Date: Sun, 10 Aug 2014 16:02:10 -0700 Subject: Added wait param to XEP_0009 RemoteSession.close This parameter is False by default to preserve existing behavior. --- sleekxmpp/plugins/xep_0009/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins') 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): -- cgit v1.2.3