mod_voicemail: that shouldve been wrlock, and its missing an unlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16647 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
644664004c
commit
94b1948a57
|
@ -738,7 +738,8 @@ static void profile_rwunlock(vm_profile_t *profile)
|
||||||
{
|
{
|
||||||
switch_thread_rwlock_unlock(profile->rwlock);
|
switch_thread_rwlock_unlock(profile->rwlock);
|
||||||
if (switch_test_flag(profile, PFLAG_DESTROY)) {
|
if (switch_test_flag(profile, PFLAG_DESTROY)) {
|
||||||
if (switch_thread_rwlock_tryrdlock(profile->rwlock) == SWITCH_STATUS_SUCCESS) {
|
if (switch_thread_rwlock_trywrlock(profile->rwlock) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
switch_thread_rwlock_unlock(profile->rwlock);
|
||||||
free_profile(profile);
|
free_profile(profile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue