Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 18, 2024
1 parent 008e11b commit 3c6ca01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ServerMainloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void ServerMainloop::run() {
double delta = targetDelta;
auto begin = system_clock::now();
auto startupTime = begin;

while (process->isActive()) {
if (engine.isQuitSignal()) {
process->terminate();
Expand All @@ -65,7 +66,7 @@ void ServerMainloop::run() {
auto end = system_clock::now();
platform::sleep(targetDelta * 1000 -
duration_cast<microseconds>(end - begin).count() / 1000);
begin = end;
begin = system_clock::now();
}
}
logger.info() << "test finished";
Expand Down

0 comments on commit 3c6ca01

Please sign in to comment.