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:
Mark Michelson
2009-06-29 15:04:17 +00:00
parent f65dccafb6
commit a3848ec74c

View File

@@ -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);