fix queue slices.Delete
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2022-10-03 11:50:30 +02:00
parent bd069cdf05
commit 2222e280fc
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -232,7 +232,7 @@ func (q *Queue) Remove(identifier Identifier) bool {
e.Source.Unlock()
go audio.NewNullSink().Process(e.Source)
slices.Delete(q.queue, i, i+1)
q.queue = slices.Delete(q.queue, i, i+1)
entry = e
}
}()