mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 11:36:50 +00:00
fix: stop reaper goroutine busy-looping after context cancel (#2964)
This commit is contained in:
1 parent
6d96163e6f
commit
41549236fe
1 file changed
+1
-1
@@ -191,7 +191,7 @@ func (s *server) reaper(ctx context.Context) {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
break
|
||||
return
|
||||
case <-t.C:
|
||||
s.mu.Lock()
|
||||
now := time.Now()
|
||||
|
||||
Reference in new issue
Block a user