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:
parent
544369cb9f
commit
cd009e8ee6
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue