Browse Source

Reset conn deadline on broadcast

pool
Sammy Libre 8 years ago
parent
commit
32b595045f
  1. 2
      go-pool/stratum/handlers.go

2
go-pool/stratum/handlers.go

@ -107,6 +107,8 @@ func (s *StratumServer) broadcastNewJobs() { @@ -107,6 +107,8 @@ func (s *StratumServer) broadcastNewJobs() {
if err != nil {
log.Printf("Job transmit error to %v@%v: %v", miner.Login, miner.IP, err)
s.removeMiner(miner.Id)
} else {
s.setDeadline(miner.Session.conn)
}
}(m.Val)
}

Loading…
Cancel
Save