From aa0e3a6ce3352572a3d2d011818b52b974d54064 Mon Sep 17 00:00:00 2001 From: nicksherron Date: Tue, 4 Feb 2020 22:46:52 -0500 Subject: [PATCH] internal.providers: fix last commit where mutex unlock should have be lock --- internal/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/providers.go b/internal/providers.go index 7f19ca8..03ec86b 100644 --- a/internal/providers.go +++ b/internal/providers.go @@ -729,7 +729,7 @@ func proxylistDownloadP(ctx context.Context) Proxies { continue } p := Proxy{Proxy: proxy, Source: source} - mu.Unlock() + mu.Lock() foundProxies = append(foundProxies, &p) mu.Unlock() }