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)