mirror of
https://github.com/django/daphne.git
synced 2025-02-07 04:00:33 +03:00
Fix #175: Check finished as well as channel
This commit is contained in:
parent
853771ec95
commit
0a2c6c2ff2
|
@ -190,7 +190,7 @@ class WebRequest(http.Request):
|
|||
Handles a reply from the client
|
||||
"""
|
||||
# Handle connections that are already closed
|
||||
if self.channel is None:
|
||||
if self.finished or self.channel is None:
|
||||
return
|
||||
# Check message validity
|
||||
if "type" not in message:
|
||||
|
|
Loading…
Reference in New Issue
Block a user