fix traceback when disconnecting from BOSH.
This commit is contained in:
parent
697d2a7324
commit
11f01f1c1c
|
@ -462,7 +462,10 @@ class XMPPDispatcher(PlugIn):
|
||||||
# we have released dispatcher, so self._owner has no methods
|
# we have released dispatcher, so self._owner has no methods
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
self._owner.remove_timeout()
|
if 'remove_timeout' in self._owner.__dict__:
|
||||||
|
# When we receive data after we started disconnecting, Transport may
|
||||||
|
# already be plugged out
|
||||||
|
self._owner.remove_timeout()
|
||||||
for (_id, _iq) in self._expected.items():
|
for (_id, _iq) in self._expected.items():
|
||||||
if _iq is None:
|
if _iq is None:
|
||||||
# If the expected Stanza would have arrived, ProcessNonBlocking
|
# If the expected Stanza would have arrived, ProcessNonBlocking
|
||||||
|
|
Loading…
Reference in New Issue