mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 21:19:09 +00:00
Add any missing locking calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -91,8 +91,13 @@ retrylock:
|
||||
if (ast_mutex_trylock(&other->lock)) {
|
||||
/* Failed to lock. Release main lock and try again */
|
||||
ast_mutex_unlock(&p->lock);
|
||||
if (us)
|
||||
ast_mutex_unlock(&us->lock);
|
||||
if (us) {
|
||||
if (ast_mutex_unlock(&us->lock)) {
|
||||
ast_log(LOG_WARNING, "%s wasn't locked while sending %d/%d\n",
|
||||
us->name, f->frametype, f->subclass);
|
||||
us = NULL;
|
||||
}
|
||||
}
|
||||
/* Wait just a bit */
|
||||
usleep(1);
|
||||
/* Only we can destroy ourselves, so we can't disappear here */
|
||||
|
||||
Reference in New Issue
Block a user