From c4ed1bf72c1652c22c77fbe33242a471beae8ddf Mon Sep 17 00:00:00 2001 From: Pablo Diaz Date: Mon, 11 Apr 2022 00:44:04 +0200 Subject: [PATCH] fix timer stop --- timer/timer.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/timer/timer.go b/timer/timer.go index 26720e76..c0fb1fc6 100644 --- a/timer/timer.go +++ b/timer/timer.go @@ -162,9 +162,7 @@ func (m *Model) Start() tea.Cmd { // Stop pauses the timer. Has no effect if the timer has timed out. func (m *Model) Stop() tea.Cmd { - return func() tea.Msg { - return m.startStop(false) - } + return m.startStop(false) } // Toggle stops the timer if it's running and starts it if it's stopped.