Another place worth force GC'ing

This commit is contained in:
Frank Denis 2020-06-09 09:52:59 +02:00
parent b794d47a76
commit 506f727f1f
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ func (proxy *Proxy) StartProxy() {
go func() {
for {
clocksmith.Sleep(PrefetchSources(proxy.xTransport, proxy.sources))
runtime.GC()
}
}()
if len(proxy.serversInfo.registeredServers) > 0 {