mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Fix cppcheck reported issues (#333)
Fixes: https://github.com/microsoft/PowerToys/issues/266
This commit is contained in:
committed by
GitHub
parent
12cd7bb49f
commit
8ac6db8b5a
@@ -119,7 +119,7 @@ void TargetState::handle_timeout() {
|
||||
std::unique_lock lock(mutex);
|
||||
auto wait_time = delay - (std::chrono::system_clock::now() - winkey_timestamp);
|
||||
if (events.empty())
|
||||
cv.wait_for(lock, delay);
|
||||
cv.wait_for(lock, wait_time);
|
||||
if (state == Exiting)
|
||||
return;
|
||||
while (!events.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user