Close memory holes, adjust tests

This commit is contained in:
2026-10-19 00:42:19 +00:00
parent 466290d316
commit a81044322b
4 changed files with 380 additions and 19 deletions
+3 -1
View File
@@ -309,9 +309,11 @@ func runMenuLoop(s *UserMasterSession, clientConn net.Conn) {
if idx < len(s.Slots) && s.Slots[idx] != nil {
slot := s.Slots[idx]
slot.Mu.Lock()
slot.IsHeld = hold
if hold {
slot.IsHeld = true
slot.ScreenChanged = false
} else {
slot.resetHoldAndLoopCountersLocked()
}
slot.Mu.Unlock()
if hold {