Don't try to send to closed socket
This commit is contained in:
parent
f1786c2ee6
commit
14cd9315c1
1 changed files with 5 additions and 0 deletions
|
@ -356,6 +356,11 @@ class Connection(object):
|
|||
message.get("params", {}).get("site"), message.get("params", {}).get("inner_path"),
|
||||
message.get("req_id"))
|
||||
)
|
||||
|
||||
if not self.sock:
|
||||
self.log("Send error: missing socket")
|
||||
return False
|
||||
|
||||
self.last_send_time = time.time()
|
||||
try:
|
||||
if streaming:
|
||||
|
|
Loading…
Reference in a new issue