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:
|
case SecurityIdChangeEventType_commit:
|
||||||
;
|
;
|
||||||
|
|
||||||
// Change Station ID
|
// Change Station ID
|
||||||
facilities->station_id = rand();
|
facilities->station_id = rand();
|
||||||
pthread_mutex_unlock(&facilities->lock);
|
pthread_mutex_unlock(&facilities->lock);
|
||||||
|
|
@ -246,6 +245,7 @@ static int security_indication(facilities_t *facilities, void* responder_secured
|
||||||
case SecurityIdChangeEventType_abort:
|
case SecurityIdChangeEventType_abort:
|
||||||
facilities->in_idchange = false;
|
facilities->in_idchange = false;
|
||||||
pthread_mutex_unlock(&facilities->lock);
|
pthread_mutex_unlock(&facilities->lock);
|
||||||
|
pthread_mutex_unlock(&facilities->lightship->lock);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue