mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Unlock list before returning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -286,6 +286,7 @@ static void agent_devicestate_cb(const struct ast_event *event, void *unused)
|
||||
device = ast_event_get_ie_str(event, AST_EVENT_IE_DEVICE);
|
||||
|
||||
if (ast_strlen_zero(device)) {
|
||||
AST_LIST_UNLOCK(&agents);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user