From 0938e5d8a2a3ad5f5d8706159eefec54c7fe0230 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 3 May 2019 10:27:04 -0700 Subject: [PATCH] don't mask context --- nat.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/nat.go b/nat.go index 371fdb0..c380300 100644 --- a/nat.go +++ b/nat.go @@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT { go func() { defer close(nats) - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - upnpIg1 := discoverUPNP_IG1(ctx) upnpIg2 := discoverUPNP_IG2(ctx) natpmp := discoverNATPMP(ctx)