fix bug in jukebox: property unavailable (#3024)

* fix bug in jukebox: property unavailable

* fix lint error
This commit is contained in:
Fynn Petersen-Frey 2024-05-15 15:48:09 +02:00 committed by Joe Stump
parent 42812165a7
commit 9bae65167c
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -150,7 +150,8 @@ func (t *MpvTrack) Position() int {
if retryCount > 5 {
return 0
}
break
time.Sleep(time.Duration(retryCount) * time.Millisecond)
continue
}
if err != nil {
@ -166,7 +167,6 @@ func (t *MpvTrack) Position() int {
return int(pos)
}
}
return 0
}
func (t *MpvTrack) SetPosition(offset int) error {