Added wait param to XEP_0009 RemoteSession.close
This parameter is False by default to preserve existing behavior.
This commit is contained in:
parent
e5582694c0
commit
3670d82f1c
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user