From 31bc392e0103aaca38cda5001e9aa7ce69a75704 Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 2 Sep 2024 22:39:38 +0200 Subject: [PATCH] Buffered channel so vscode stops complaining and perhaps it saves a bit of memory --- internal/events/websocket/mock_server/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/events/websocket/mock_server/manager.go b/internal/events/websocket/mock_server/manager.go index ac9d397..99dffa5 100644 --- a/internal/events/websocket/mock_server/manager.go +++ b/internal/events/websocket/mock_server/manager.go @@ -71,7 +71,7 @@ func StartWebsocketServer(enableDebug bool, ip string, port int, enableSSL bool, serverManager.primaryServer = initialServer.ServerId // Allow exit with Ctrl + C - stop := make(chan os.Signal) + stop := make(chan os.Signal, 1) signal.Notify(stop, os.Interrupt) m := http.NewServeMux()