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:
		| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lance Stout
					Lance Stout