From: John Hodge Date: Mon, 30 Mar 2015 11:54:22 +0000 (+0800) Subject: Fix unbounded door thread creation X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=06ad9313e224ed47eedf29b90c4d99055ac97015;p=tpg%2Fopendispense2.git Fix unbounded door thread creation --- diff --git a/src/server/handler_door.c b/src/server/handler_door.c index 5ec25c2..78e0b2a 100644 --- a/src/server/handler_door.c +++ b/src/server/handler_door.c @@ -48,6 +48,7 @@ bool gbDoor_LockThreadStarted; // === CODE === void* Door_Lock(void* Unused __attribute__((unused))) { + gbDoor_LockThreadStarted = true; while(1) { sem_wait(&gDoor_UnlockSemaphore);