summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-11-18 15:00:58 -0600
committerzachir <zachir@librem.one>2023-11-18 15:00:58 -0600
commitd36ed61f905a3b6264cf3e5d583a7895281525e9 (patch)
tree35384d9c53f9cc3b735ed9866e4760766461f3c8
parentf0672850764fa8957198b9266d4518ddea45c90f (diff)
Fix issue with garbage collector in mpdarc
reset_garbage_collector started uninitialized in one function, so we initialize it to 0 everywhere.
-rw-r--r--mpdarc-widget/mpdarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpdarc-widget/mpdarc.lua b/mpdarc-widget/mpdarc.lua
index d5e6ae9..d643725 100644
--- a/mpdarc-widget/mpdarc.lua
+++ b/mpdarc-widget/mpdarc.lua
@@ -100,7 +100,7 @@ end)
local notification
local function show_MPD_status()
- local reset_garbage_collector
+ local reset_garbage_collector = 0
spawn.easy_async(GET_MPD_CMD,
function(stdout, _, _, _)
notification = naughty.notify {