mirror of
https://github.com/jetkvm/kvm.git
synced 2026-05-21 05:20:35 +00:00
a6d56d7820
The retry loop captured initialCaps once before entering the loop. If a try-tap failed to reach the host but the undo-tap in the catch block succeeded, the host's actual caps state diverged from initialCaps. Every subsequent iteration then toggled in the wrong direction, guaranteeing the 15s deadline was exhausted. Fix: re-read the LED state at the top of each iteration so the expected value always reflects reality. Made-with: Cursor