Fixing a problem pointed out by Qwell
authorMark Michelson <mmichelson@digium.com>
Fri, 16 Nov 2007 19:51:47 +0000 (19:51 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 16 Nov 2007 19:51:47 +0000 (19:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89332 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index e4d93ac..37885d4 100644 (file)
@@ -2403,7 +2403,7 @@ static int process_message(struct mansession *s, const struct message *m)
                        sleep(1);
                        ast_mutex_lock(&s->__lock);
                        astman_send_error(s, m, "Login Already In Use");
-                       ast_mutex_lock(&s->__lock);
+                       ast_mutex_unlock(&s->__lock);
                        return -1;
                }
        }