summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-18 07:13:19 +0000
committergVisor bot <gvisor-bot@google.com>2020-06-18 07:13:19 +0000
commit359e4c56571e18e9e6b2618cdd46293aa271666c (patch)
tree70fe8d4e39baa56418410ee6d555557a862d2343 /pkg/tcpip/transport/tcp
parentb07f97837cef8b28ea017efba0ad55b7463c00d8 (diff)
parent09b2fca40c61f9ec8d6745f422f6f45b399e8f94 (diff)
Merge release-20200608.0-81-g09b2fca40 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r--pkg/tcpip/transport/tcp/timer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/timer.go b/pkg/tcpip/transport/tcp/timer.go
index c70525f27..7981d469b 100644
--- a/pkg/tcpip/transport/tcp/timer.go
+++ b/pkg/tcpip/transport/tcp/timer.go
@@ -85,6 +85,7 @@ func (t *timer) init(w *sleep.Waker) {
// cleanup frees all resources associated with the timer.
func (t *timer) cleanup() {
t.timer.Stop()
+ *t = timer{}
}
// checkExpiration checks if the given timer has actually expired, it should be