mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Let disconnect() wait for its lock for a few seconds.
This should eliminate most debug statements about not being able to acquire a lock during disconnect.
This commit is contained in:
parent
e3d596c9fa
commit
53bcd33e1d
1 changed files with 1 additions and 0 deletions
|
@ -576,6 +576,7 @@ class XMLStream(object):
|
|||
:attr:`disconnect_wait`.
|
||||
"""
|
||||
self.state.transition('connected', 'disconnected',
|
||||
wait=2.0,
|
||||
func=self._disconnect, args=(reconnect, wait))
|
||||
|
||||
def _disconnect(self, reconnect=False, wait=None):
|
||||
|
|
Loading…
Reference in a new issue