Skip to content

Commit

Permalink
Buffered channel so vscode stops complaining and perhaps it saves a b…
Browse files Browse the repository at this point in the history
…it of memory
  • Loading branch information
Dkamps18 committed Sep 2, 2024
1 parent eafe225 commit 31bc392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/events/websocket/mock_server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 31bc392

Please sign in to comment.