Fix unbounded door thread creation
[tpg/opendispense2.git] / 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