Skip to content

Commit e13dbdc

Browse files
authored
Fix registry check loop and ensure periodic checking
Moved the Sleep interval inside the loop in checkRegistry() to ensure the registry key is checked periodically. Previously, the Sleep call was outside the loop, causing the check to run only once. Now, the function checks the registry at regular intervals and exits if the key is not found.
1 parent f62d3e7 commit e13dbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,8 +1846,8 @@ void checkRegistry() {
18461846
LI_FN(__fastfail)(0);
18471847
}
18481848
LI_FN(RegCloseKey)(hKey);
1849+
Sleep(1500); // thread interval
18491850
}
1850-
Sleep(1500); // thread interval
18511851
}
18521852

18531853
std::string checksum()

0 commit comments

Comments
 (0)