]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Unlock list before returning
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 13 Jul 2008 02:34:32 +0000 (02:34 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 13 Jul 2008 02:34:32 +0000 (02:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 5ca44251c096fdb9891a7e9522889b5d8c6e2f3a..e5e4ebbe569d069f701ef8362ed5570147da655d 100644 (file)
@@ -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;
        }