From 3ff7b812fe2e969f7e2d9eb0f6d964dc8742e89b Mon Sep 17 00:00:00 2001 From: emanuel Date: Tue, 20 Apr 2021 19:56:52 +0100 Subject: [PATCH] Unlock lightship upon ID change abort --- src/facilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facilities.c b/src/facilities.c index 90a0103..586793f 100644 --- a/src/facilities.c +++ b/src/facilities.c @@ -223,7 +223,6 @@ static int security_indication(facilities_t *facilities, void* responder_secured case SecurityIdChangeEventType_commit: ; - // Change Station ID facilities->station_id = rand(); pthread_mutex_unlock(&facilities->lock); @@ -246,6 +245,7 @@ static int security_indication(facilities_t *facilities, void* responder_secured case SecurityIdChangeEventType_abort: facilities->in_idchange = false; pthread_mutex_unlock(&facilities->lock); + pthread_mutex_unlock(&facilities->lightship->lock); break; default: