Better timeout management on mopidy status refresh.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabio Manganiello 2024-04-04 00:51:39 +02:00
parent c3015bc687
commit 5fe24a501a
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -150,6 +150,12 @@ class MopidyClient(Thread):
if self._refresh_in_progress.is_set():
return
# Unless we are also retrieving the tracks, we don't need a high timeout here.
# A high timeout may result in event lagging if some of the responses aren't received.
# In this case, better to timeout early and retry.
if not with_tracks:
timeout = 5
events = []
try: