mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
libdingaling: fix race on shutdown causing crash (FSMOD-47)
This commit is contained in:
parent
750aa7e29b
commit
0ddd0c25a6
@ -2179,7 +2179,11 @@ ldl_status ldl_session_get_payloads(ldl_session_t *session, ldl_payload_t **payl
|
|||||||
|
|
||||||
ldl_status ldl_global_terminate(void)
|
ldl_status ldl_global_terminate(void)
|
||||||
{
|
{
|
||||||
|
if (globals.flag_mutex) {
|
||||||
ldl_clear_flag_locked((&globals), LDL_FLAG_READY);
|
ldl_clear_flag_locked((&globals), LDL_FLAG_READY);
|
||||||
|
} else {
|
||||||
|
ldl_clear_flag((&globals), LDL_FLAG_READY);
|
||||||
|
}
|
||||||
return LDL_STATUS_SUCCESS;
|
return LDL_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user