BUG: Actually stop delayed tracklist start if stopped early.
This commit is contained in:
parent
5163cc338a
commit
dc64ada5b2
1 changed files with 5 additions and 0 deletions
|
@ -522,6 +522,11 @@ class Player:
|
||||||
# This essentially allows the tracklist end API call to happen in a separate thread, to avoid hanging playout/loading.
|
# This essentially allows the tracklist end API call to happen in a separate thread, to avoid hanging playout/loading.
|
||||||
def _potentially_end_tracklist(self):
|
def _potentially_end_tracklist(self):
|
||||||
|
|
||||||
|
if self.tracklist_start_timer:
|
||||||
|
self.logger.log.info("A tracklist start timer was running, cancelling.")
|
||||||
|
self.tracklist_start_timer.cancel()
|
||||||
|
self.tracklist_start_timer = None
|
||||||
|
|
||||||
# Make a copy of the tracklist_id, it will get reset as we load the next item.
|
# Make a copy of the tracklist_id, it will get reset as we load the next item.
|
||||||
tracklist_id = self.state.get()["tracklist_id"]
|
tracklist_id = self.state.get()["tracklist_id"]
|
||||||
if not tracklist_id:
|
if not tracklist_id:
|
||||||
|
|
Loading…
Reference in a new issue