Fix #175: Check finished as well as channel

This commit is contained in:
Andrew Godwin 2018-02-21 09:50:59 -08:00
parent 853771ec95
commit 0a2c6c2ff2

View File

@ -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: