Fix unbounded door thread creation
authorJohn Hodge <[email protected]>
Mon, 30 Mar 2015 11:54:22 +0000 (19:54 +0800)
committerJohn Hodge <[email protected]>
Mon, 30 Mar 2015 11:54:22 +0000 (19:54 +0800)
src/server/handler_door.c

index 5ec25c2..78e0b2a 100644 (file)
@@ -48,6 +48,7 @@ bool  gbDoor_LockThreadStarted;
 // === CODE ===
 void* Door_Lock(void* Unused __attribute__((unused)))
 {
+       gbDoor_LockThreadStarted = true;
        while(1)
        {
                sem_wait(&gDoor_UnlockSemaphore);

UCC git Repository :: git.ucc.asn.au