forked from quic-go/quic-go
stop the timer when the session's run loop returns
This commit is contained in:
@@ -46,3 +46,8 @@ func (t *Timer) Reset(deadline time.Time) {
|
||||
func (t *Timer) SetRead() {
|
||||
t.read = true
|
||||
}
|
||||
|
||||
// Stop stops the timer
|
||||
func (t *Timer) Stop() {
|
||||
t.t.Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user