Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wm): add cmd thread lock acquisition timeouts
After some investigation by @alex-ds13 on Discord it looks like there are times where attempting to gain a lock on the WindowManager inside of read_commands_uds results in the thread becoming blocked when it's not possible to obtain the lock. Instead of waiting indefinitely for a lock, this change ensures that we will wait for at most 1 second before discarding the message so that the command listener loop can continue. Warning logs have been added to inform when a message has been dropped as a result of lock acquisition failure.
- Loading branch information