diff options
author | Tamir Duberstein <tamird@google.com> | 2021-11-09 10:53:37 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-11-09 10:57:11 -0800 |
commit | 3f5cfe694a99ebebc8ad7b55090259e1e4319d02 (patch) | |
tree | 66b779216a017c34e67a303da59ba944ee68f417 /pkg/tcpip/network/ipv4 | |
parent | 84b38f4c6e065d3f9314a8abbb3f5857ed4fa44e (diff) |
Remove Stack.NewJob
Use the static method instead; these methods encourage callers to retain
a pointer to the entire stack rather than only its clock which they
require.
PiperOrigin-RevId: 408651956
Diffstat (limited to 'pkg/tcpip/network/ipv4')
-rw-r--r-- | pkg/tcpip/network/ipv4/igmp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/network/ipv4/igmp.go b/pkg/tcpip/network/ipv4/igmp.go index d9cc4574e..862b893df 100644 --- a/pkg/tcpip/network/ipv4/igmp.go +++ b/pkg/tcpip/network/ipv4/igmp.go @@ -150,7 +150,7 @@ func (igmp *igmpState) init(ep *endpoint) { MaxUnsolicitedReportDelay: UnsolicitedReportIntervalMax, }) igmp.igmpV1Present = igmpV1PresentDefault - igmp.igmpV1Job = ep.protocol.stack.NewJob(&ep.mu, func() { + igmp.igmpV1Job = tcpip.NewJob(ep.protocol.stack.Clock(), &ep.mu, func() { igmp.setV1Present(false) }) } |