don't traceback when we get disconnected wile we parse stream features. Fixes #5574

This commit is contained in:
Yann Leboulanger 2010-03-09 20:28:25 +01:00
parent c558a6751c
commit 5d6fd195ab
1 changed files with 3 additions and 0 deletions

View File

@ -362,6 +362,9 @@ class NonBlockingClient:
supported and desired.
"""
self.stream_started = True
if not hasattr(self, 'onreceive'):
# we may already have been disconnected
return
self.onreceive(None)
if self.connected == 'plain':