Unlock lightship upon ID change abort
This commit is contained in:
parent
fe7a7c0c03
commit
3ff7b812fe
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue