Unlock lightship upon ID change abort

This commit is contained in:
emanuel 2021-04-20 19:56:52 +01:00
parent fe7a7c0c03
commit 3ff7b812fe
1 changed files with 1 additions and 1 deletions

View File

@ -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: