mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Place unlock of mutex in an else block so that it does not get unlocked twice.
(closes issue #15400) Reported by: aragon git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@204012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -273,8 +273,9 @@ static void *mixmonitor_thread(void *obj)
|
||||
ast_writestream(*fs, cur);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock);
|
||||
}
|
||||
ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock);
|
||||
|
||||
/* All done! free it. */
|
||||
ast_frame_free(fr, 0);
|
||||
|
Reference in New Issue
Block a user