Skip to content

Commit

Permalink
Fixed niche case crash on timeout after shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Aug 2, 2023
1 parent be2247f commit d1ccbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Uint32 eventTimeoutEvent(Uint32 interval, void* param) {
}
}
}
lua_externalerror(computer->L, "Too long without yielding");
if (computer->L) lua_externalerror(computer->L, "Too long without yielding");
return 1000;
}

Expand Down

0 comments on commit d1ccbe3

Please sign in to comment.