feat: update timer management
- rename timerRunning to pomodoroRunning
- move function and timer definition to correct source file
🤖
This commit is contained in:
parent
90f80cc685
commit
c9501c3bbb
3 changed files with 10 additions and 10 deletions
|
@ -29,11 +29,11 @@ func handleClientCommands(ws *websocket.Conn) {
|
|||
// Process the command
|
||||
switch command.Command {
|
||||
case "start":
|
||||
if !pomodoro.IsTimerRunning() {
|
||||
if !pomodoro.IsPomodoroRunning() {
|
||||
go pomodoro.RunPomodoroTimer(Clients) // Start the timer with the list of clients
|
||||
}
|
||||
case "stop":
|
||||
if pomodoro.IsTimerRunning() {
|
||||
if pomodoro.IsPomodoroRunning() {
|
||||
pomodoro.StopTimer() // Stop the timer in the Pomodoro package
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue