From b523944ff4c267f1465489901d372ec5216367de Mon Sep 17 00:00:00 2001 From: Delta Date: Sun, 16 Oct 2022 19:56:05 +0200 Subject: [PATCH] god i'm stupid --- ODTKRA/Main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ODTKRA/Main.cpp b/ODTKRA/Main.cpp index 92a005a..18411f5 100644 --- a/ODTKRA/Main.cpp +++ b/ODTKRA/Main.cpp @@ -156,6 +156,7 @@ 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;