fix: stop reaper goroutine busy-looping after context cancel (#2964)

This commit is contained in:
AaronChen0 authored and GitHub committed 2026-07-11 17:47:56 +08:00
1 parent 6d96163e6f
commit 41549236fe
1 file changed
+1 -1
+1 -1
View File
@@ -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()