forked from Mirrors/freeswitch
don't remove the event NULL
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8903 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d13e1bd4cb
commit
ac467b5d09
@ -1074,7 +1074,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind(switch_event_node_t **node)
|
|||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||||
|
|
||||||
n = *node;
|
n = *node;
|
||||||
|
|
||||||
|
if (!n) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
switch_thread_rwlock_wrlock(RWLOCK);
|
switch_thread_rwlock_wrlock(RWLOCK);
|
||||||
switch_mutex_lock(BLOCK);
|
switch_mutex_lock(BLOCK);
|
||||||
/* <LOCKED> ----------------------------------------------- */
|
/* <LOCKED> ----------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user