don't traceback when we get disconnected wile we parse stream features. Fixes #5574
This commit is contained in:
parent
c558a6751c
commit
5d6fd195ab
1 changed files with 3 additions and 0 deletions
|
@ -362,6 +362,9 @@ class NonBlockingClient:
|
||||||
supported and desired.
|
supported and desired.
|
||||||
"""
|
"""
|
||||||
self.stream_started = True
|
self.stream_started = True
|
||||||
|
if not hasattr(self, 'onreceive'):
|
||||||
|
# we may already have been disconnected
|
||||||
|
return
|
||||||
self.onreceive(None)
|
self.onreceive(None)
|
||||||
|
|
||||||
if self.connected == 'plain':
|
if self.connected == 'plain':
|
||||||
|
|
Loading…
Add table
Reference in a new issue