Really minor tweak

Forgot to change back a value while testing error handling to avoid
crashing server on user disconnect
This commit is contained in:
raul 2024-03-29 09:40:02 +01:00
parent 544369cb9f
commit cd009e8ee6
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ func server(cmd *cobra.Command) {
cobra.CheckErr(err) cobra.CheckErr(err)
fmt.Printf("Listening on port %v...\n", lport) fmt.Printf("Listening on port %v...\n", lport)
for { for {
conn, _ := ln.Accept() conn, err := ln.Accept()
//cobra.CheckErr(err) cobra.CheckErr(err)
go handleConn(conn) go handleConn(conn)
} }