Skip to content

Commit

Permalink
why
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaNeverUsed committed Oct 16, 2022
1 parent b523944 commit 349d7ab
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ODTKRA/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,16 @@ int main(int argc, char* argv[])
{
Sleep(60000);
if (GetTickCount() - GetIdleTime() > 54000 && GetTickCount() - last_time_restarted > 1800000) {
killODT(0);
start_ODT(hWindowHandle, Target_window_Name); //restart ODT becuase it has a fucking memory leak
std::cout << "ODT restarted at " << st.wHour << ":" << st.wMinute << std::endl;

last_time_restarted = GetTickCount();
if (check_ODT()) {
std::cout << "ODT restarted at " << st.wHour << ":" << st.wMinute << std::endl;

last_time_restarted = GetTickCount();
}
else {
killODT(0);
Sleep(10000);
start_ODT(hWindowHandle, Target_window_Name); //restart ODT becuase it has a fucking memory leak
}
}
}
}
Expand Down

0 comments on commit 349d7ab

Please sign in to comment.