Merge pull request #2558 from gqgs/ws-iterable
Avoid iterating in uninitialized result
This commit is contained in:
commit
f868fed51d
1 changed files with 2 additions and 0 deletions
|
@ -262,6 +262,8 @@ class WebSocketHandler(WSGIHandler):
|
||||||
|
|
||||||
def process_result(self):
|
def process_result(self):
|
||||||
if "wsgi.websocket" in self.environ:
|
if "wsgi.websocket" in self.environ:
|
||||||
|
if self.result is None:
|
||||||
|
return
|
||||||
# Flushing result is required for werkzeug compatibility
|
# Flushing result is required for werkzeug compatibility
|
||||||
for elem in self.result:
|
for elem in self.result:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue