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
@ -576,6 +576,7 @@ class XMLStream(object):
|
|||||||
:attr:`disconnect_wait`.
|
:attr:`disconnect_wait`.
|
||||||
"""
|
"""
|
||||||
self.state.transition('connected', 'disconnected',
|
self.state.transition('connected', 'disconnected',
|
||||||
|
wait=2.0,
|
||||||
func=self._disconnect, args=(reconnect, wait))
|
func=self._disconnect, args=(reconnect, wait))
|
||||||
|
|
||||||
def _disconnect(self, reconnect=False, wait=None):
|
def _disconnect(self, reconnect=False, wait=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user