From cd009e8ee68d73cbf5507668cafbd25f5e4cf36d Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 29 Mar 2024 09:40:02 +0100 Subject: [PATCH] Really minor tweak Forgot to change back a value while testing error handling to avoid crashing server on user disconnect --- cmd/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index bb4e162..20c695f 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -59,8 +59,8 @@ func server(cmd *cobra.Command) { cobra.CheckErr(err) fmt.Printf("Listening on port %v...\n", lport) for { - conn, _ := ln.Accept() - //cobra.CheckErr(err) + conn, err := ln.Accept() + cobra.CheckErr(err) go handleConn(conn) }