silently eat Control socket .send() failures
This commit is contained in:
parent
f2a13f9015
commit
5fcf18313e
1 changed files with 5 additions and 2 deletions
|
@ -111,5 +111,8 @@ class Control(PollSource.PollSource):
|
|||
|
||||
def _send_action(self, client: ControlClient, action: str,
|
||||
data: typing.Optional[str], id: typing.Optional[str]=None):
|
||||
client.write_line(
|
||||
json.dumps({"action": action, "data": data, "id": id}))
|
||||
try:
|
||||
client.write_line(
|
||||
json.dumps({"action": action, "data": data, "id": id}))
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue