From e0000382e9745dd7346c8b1db791b1c815116558 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sun, 27 Oct 2024 21:47:05 +0100 Subject: [PATCH] fix: move package variable to `frontend.Handler` --- internal/frontend/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/frontend/main.go b/internal/frontend/main.go index e64b01d..c876bd5 100644 --- a/internal/frontend/main.go +++ b/internal/frontend/main.go @@ -7,9 +7,9 @@ import ( GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models" ) -var message GoTomato.ServerMessage - func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) { + var message GoTomato.ServerMessage + keyhandler_quit := make(chan bool, 1) go keyhandler(conn, config, &message, keyhandler_quit)