Browse Source

Remove useless check for conn errors

pool
Sammy Libre 8 years ago
parent
commit
ff4b994b03
  1. 1
      go-pool/stratum/stratum.go

1
go-pool/stratum/stratum.go

@ -96,7 +96,6 @@ func (s *StratumServer) Listen() {
continue continue
} }
conn.SetKeepAlive(true) conn.SetKeepAlive(true)
checkError(err)
ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String()) ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String())
ok := s.policy.ApplyLimitPolicy(ip) ok := s.policy.ApplyLimitPolicy(ip)
if !ok { if !ok {

Loading…
Cancel
Save