func (c *Custodian) resetTimer() {
	if len(c.seq) == 0 {
		c.timer.Stop()
		return
	}
	next := c.seq[0]
	diff := next.deadline.Sub(time.Now())
	if diff < 0 {
		diff = 0
	}
	c.timer.Reset(diff)
}
// resetTimer must be called with lock held
resetTimer must be called with lock held
// resetTimer must be called with lock held
func (c *Custodian) resetTimer() {
	if len(c.seq) == 0 {
		c.timer.Stop()
		return
	}
	next := c.seq[0]
	diff := next.deadline.Sub(time.Now())
	if diff < 0 {
		diff = 0
	}
	c.timer.Reset(diff)
}
func ( c * Custodian ) resetTimer ( ) { if len ( c . seq ) == 0 { c . timer . Stop ( ) return } next := c . seq [ 0 ] diff := next . deadline . Sub ( time . Now ( ) ) if diff < 0 { diff = 0 } c . timer . Reset ( diff ) }
resetTimer must be called with lock held
resetTimer must be called with lock held