Close memory holes, adjust tests
This commit is contained in:
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user