diff --git a/main.cpp b/main.cpp index 3876fbaa..0112e1a8 100644 --- a/main.cpp +++ b/main.cpp @@ -340,6 +340,9 @@ bool isDumpDbRunning = false; extern "C" void DumpDb() { if (isDumpDbRunning == true) { + while (isDumpDbRunning) { + sleep (1); // Wait for the dump to complete + } return; } isDumpDbRunning = true;