mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "cmd/bootnode: fix timer leak (#27754)"
This reverts commit 9ad7158974.
This commit is contained in:
parent
563c377115
commit
a2fef14501
1 changed files with 0 additions and 1 deletions
|
|
@ -197,7 +197,6 @@ func doPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) *
|
||||||
// Refresh the mapping periodically.
|
// Refresh the mapping periodically.
|
||||||
go func() {
|
go func() {
|
||||||
refresh := time.NewTimer(mapTimeout)
|
refresh := time.NewTimer(mapTimeout)
|
||||||
defer refresh.Stop()
|
|
||||||
for range refresh.C {
|
for range refresh.C {
|
||||||
addMapping()
|
addMapping()
|
||||||
refresh.Reset(mapTimeout)
|
refresh.Reset(mapTimeout)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue