From 2222e280fc829dddb37f8864c142e0a8b2678312 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Mon, 3 Oct 2022 11:50:30 +0200 Subject: [PATCH] fix queue slices.Delete --- audio/queue/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/queue/queue.go b/audio/queue/queue.go index 405e792..80ac6c4 100644 --- a/audio/queue/queue.go +++ b/audio/queue/queue.go @@ -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 } }()