Crashfix in JIT disassembly UI. Add sanity check in WaitUntil

This commit is contained in:
Henrik Rydgård committed 2024-01-27 13:28:09 +01:00
1 parent 026662b027
commit a2e7712126
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ void WaitUntil(double now, double timestamp) {
}
#else
const double left = timestamp - now;
if (left > 0.0) {
if (left > 0.0 && left < 3.0) {
usleep((long)(left * 1000000));
}
#endif