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 GitHub
parent 45c4583f1b
commit de0a08915c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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 {