From 1197ff3cd2d0b03559162e22486ed39d01cf9bb3 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 23 May 2026 10:43:52 +0000 Subject: [PATCH] wait, i am myself --- src/common/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 1617f5a4f9..d0a74c6c90 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -217,8 +217,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds& time) { #ifdef _WIN32 while (!IsSet() && _rdtsc() < target_tsc) Common::Windows::SleepForOneTick(); - if (event.IsSet()) - event.Reset(); + if (IsSet()) + Reset(); return true; #else std::unique_lock lk{mutex};