don't die if there's an Accept error
just go back to listening
This commit is contained in:
parent
e4cb3c7997
commit
f4748ee52c
@ -24,7 +24,7 @@ func main() {
|
|||||||
conn, err := ln.Accept()
|
conn, err := ln.Accept()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "%v\n", err)
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
os.Exit(1)
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
dec := gob.NewDecoder(conn)
|
dec := gob.NewDecoder(conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user