Added wait param to XEP_0009 RemoteSession.close

This parameter is False by default to preserve existing behavior.
This commit is contained in:
Michael Trinque 2014-08-10 16:02:10 -07:00
parent e5582694c0
commit 3670d82f1c

View File

@ -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):