From 17e81e28b17274028503eaa5bb0c22f526a47883 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 18 Jan 2021 23:51:39 +0000 Subject: [PATCH] awesome/mpc: don't try to reconnect on error --- awesome/widgets/mpc.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/awesome/widgets/mpc.lua b/awesome/widgets/mpc.lua index 2ef26b5..ae4f658 100644 --- a/awesome/widgets/mpc.lua +++ b/awesome/widgets/mpc.lua @@ -46,10 +46,6 @@ end function mpc:_error(err) self._connected = false self._error_handler(err) - self._try_reconnect = not self._try_reconnect - if self._try_reconnect then - self:_connect() - end end function mpc:connect() -- 2.48.1