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:
Michael Jerris 2008-07-07 15:04:35 +00:00
parent d13e1bd4cb
commit ac467b5d09
1 changed files with 5 additions and 1 deletions

View File

@ -1074,7 +1074,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind(switch_event_node_t **node)
switch_status_t status = SWITCH_STATUS_FALSE;
n = *node;
if (!n) {
return status;
}
switch_thread_rwlock_wrlock(RWLOCK);
switch_mutex_lock(BLOCK);
/* <LOCKED> ----------------------------------------------- */