diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-02-19 17:39:28 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-02-19 17:48:16 -0500 |
commit | 2cbbf914242d0766ff4e97ee3c0d02505d13e422 (patch) | |
tree | 8cb78ef266900f17e27a90d844af143a59887d7e /network/abstractnetworkmodel.cpp | |
parent | 9a7e2c5420cae0669c149d5dddbcd99a8fac0038 (diff) |
mediaplayer: Improve MPD failure handling
Changes:
- Avoid crashing in the MPD event handler code when our connection
times out because it has hung. Additionally, attempt to update
the front end UI to a sane state with respect to metadata when
this happens.
- Lower the MPD connection timeout and keepalive timeouts to try to
catch MPD failures faster. There are still problems in this area
with respect to the front end UI getting stuck if it does an
operation that would attempt to use the MPD API while it is hung.
Fixing that completely would require a significant refactoring to
move all the MPD API code to a separate thread so that the QML
rendering thread does not get stuck. It's unclear at present if
such a refactoring is justified, as the MPD hang in this case is
fixed by changes in MPD 0.23.8.
Bug-AGL: SPEC-4661
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia5e74d00acdc6b3b28cdf87b26486dbddfa02a98
Diffstat (limited to 'network/abstractnetworkmodel.cpp')
0 files changed, 0 insertions, 0 deletions