Skip to content

Commit

Permalink
Trying to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Apr 19, 2024
1 parent 1de9bc2 commit 3bdb768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.cpp
Expand Up @@ -185,7 +185,7 @@ Uint32 eventTimeoutEvent(Uint32 interval, void* param) {
Computer * computer = (Computer*)param;
LockGuard lock(computers);
if (freedComputers.find(computer) != freedComputers.end()) return 0;
if (!computer->L || computer->getting_event || !computer->eventTimeout || std::chrono::high_resolution_clock::now() - computer->last_event > std::chrono::milliseconds(config.abortTimeout * 2)) return 0;
if (!computer->L || computer->getting_event || !computer->eventTimeout || (computer->timeoutCheckCount == 0 && std::chrono::high_resolution_clock::now() - computer->last_event > std::chrono::milliseconds(config.abortTimeout * 2))) return 1000;
if (++computer->timeoutCheckCount >= 5) {
if (config.standardsMode) {
// In standards mode we give no second chances - just crash and burn
Expand Down

0 comments on commit 3bdb768

Please sign in to comment.