From a4b6f1edb2e1cd83ef1131439b0e64f5b1ebd94b Mon Sep 17 00:00:00 2001 From: Sammy Libre Date: Sun, 31 Jul 2016 02:36:07 +0500 Subject: [PATCH] Continue on tcp err --- go-pool/stratum/stratum.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go-pool/stratum/stratum.go b/go-pool/stratum/stratum.go index b3db010..ab7324f 100644 --- a/go-pool/stratum/stratum.go +++ b/go-pool/stratum/stratum.go @@ -92,6 +92,9 @@ func (s *StratumServer) Listen() { for { conn, err := server.AcceptTCP() + if err != nil { + continue + } conn.SetKeepAlive(true) checkError(err) ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String())