close mpv ipc socket
This commit is contained in:
parent
54640510db
commit
501cb64518
1 changed files with 2 additions and 0 deletions
2
app.py
2
app.py
|
@ -183,6 +183,8 @@ def api_nowplaying():
|
|||
reply_json: Mapping[str, Any] = json.loads(reply.decode())
|
||||
response[key] = reply_json["data"] if "data" in reply_json else "Unknown"
|
||||
|
||||
sock.close()
|
||||
|
||||
return jsonify(response)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue