From 2a3df6bcf8e6afe8888406fb27023a690eff81a1 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Wed, 24 Nov 2021 16:41:56 -0800 Subject: [PATCH] Buffer message channel for music --- pkg/player/player.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/player/player.go b/pkg/player/player.go index da71658..5ed5e50 100644 --- a/pkg/player/player.go +++ b/pkg/player/player.go @@ -26,7 +26,7 @@ func Init() error { dbus.WithMatchInterface("org.freedesktop.DBus.Properties"), dbus.WithMatchMember("PropertiesChanged"), ) - monitorCh = make(chan *dbus.Message) + monitorCh = make(chan *dbus.Message, 10) monitorConn.Eavesdrop(monitorCh) // Connect to session bus for method calls