From 0b2a2e4b189980be775ff3dd71ea331da8d27a23 Mon Sep 17 00:00:00 2001 From: darkhz Date: Fri, 8 Mar 2024 09:13:11 +0530 Subject: [PATCH] ui/player: Remove unused status context --- ui/player/player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/player/player.go b/ui/player/player.go index 78883c2..c4a557c 100644 --- a/ui/player/player.go +++ b/ui/player/player.go @@ -780,12 +780,12 @@ func playingStatusCheck() { } Context(false) - go playerUpdateLoop(player.ctx, player.cancel) + go playerUpdateLoop(player.ctx) } } // playerUpdateLoop updates the player. -func playerUpdateLoop(ctx context.Context, cancel context.CancelFunc) { +func playerUpdateLoop(ctx context.Context) { evCtx, evCancel := context.WithCancel(context.Background()) go func(c context.Context) { for {