Reset conn deadline on broadcast

This commit is contained in:
Sammy Libre 2016-08-07 08:11:10 +05:00
parent f6af9a3d4a
commit 32b595045f

View File

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