Continue on tcp err

This commit is contained in:
Sammy Libre 2016-07-31 02:36:07 +05:00
parent 7f07ef97c6
commit a4b6f1edb2

View File

@ -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())