don't die if there's an Accept error

just go back to listening
This commit is contained in:
Stephen McQuay 2015-02-04 21:43:24 -08:00
parent e4cb3c7997
commit f4748ee52c

View File

@ -24,7 +24,7 @@ func main() {
conn, err := ln.Accept()
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
break
}
dec := gob.NewDecoder(conn)