diff --git a/lib/nat/service.go b/lib/nat/service.go index ef5f00a06..901ceac6d 100644 --- a/lib/nat/service.go +++ b/lib/nat/service.go @@ -85,7 +85,10 @@ func (s *Service) serve(ctx context.Context) { case <-timer.C: case <-s.processScheduled: if !timer.Stop() { - <-timer.C + select { + case <-timer.C: + default: + } } case <-ctx.Done(): timer.Stop()