This commit is contained in:
2020-04-18 00:41:15 -04:00
parent d8ac7b9b2e
commit 7275e0abce
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -232,10 +232,12 @@ func (pm *ProxyManager) listenToClearCache() {
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGUSR2, syscall.SIGTERM)
go func() {
<-sigs
pm.mux.Lock()
pm.Cache = NewQueueMap()
pm.mux.Unlock()
for {
<-sigs
pm.mux.Lock()
pm.Cache = NewQueueMap()
pm.mux.Unlock()
}
}()
}