Commit 0938e5d8 authored by Steven Allen's avatar Steven Allen

don't mask context

parent d13fdefb
...@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT { ...@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
go func() { go func() {
defer close(nats) defer close(nats)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
upnpIg1 := discoverUPNP_IG1(ctx) upnpIg1 := discoverUPNP_IG1(ctx)
upnpIg2 := discoverUPNP_IG2(ctx) upnpIg2 := discoverUPNP_IG2(ctx)
natpmp := discoverNATPMP(ctx) natpmp := discoverNATPMP(ctx)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment