diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go index bddfcbe2a5e0..14f030ff5e75 100644 --- a/cmd/bootnode/main.go +++ b/cmd/bootnode/main.go @@ -196,6 +196,7 @@ func doPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) * // Refresh the mapping periodically. go func() { refresh := time.NewTimer(mapTimeout) + defer refresh.Stop() for range refresh.C { addMapping() refresh.Reset(mapTimeout)