fix deadlock regression with tracklist.AppendTracks
This commit is contained in:
@@ -348,9 +348,9 @@ func (t *Tracklist) GetTracks() []*mediaprovider.Track {
|
||||
// Append more tracks to the tracklist. Thread-safe.
|
||||
func (t *Tracklist) AppendTracks(trs []*mediaprovider.Track) {
|
||||
t.tracksMutex.Lock()
|
||||
defer t.tracksMutex.Unlock()
|
||||
t.tracksOrigOrder = append(t.tracks, util.ToTrackListModels(trs)...)
|
||||
t.doSortTracks()
|
||||
t.tracksMutex.Unlock()
|
||||
t.list.Refresh()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user