fix traceback when disconnecting from BOSH.

This commit is contained in:
Yann Leboulanger 2009-11-06 17:58:39 +01:00
parent 697d2a7324
commit 11f01f1c1c
1 changed files with 4 additions and 1 deletions

View File

@ -462,6 +462,9 @@ class XMPPDispatcher(PlugIn):
# we have released dispatcher, so self._owner has no methods
if not res:
return
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():
if _iq is None: