From: Joshua Colp Date: Fri, 10 Nov 2006 03:34:13 +0000 (+0000) Subject: This should already be called while locked. X-Git-Tag: 1.6.0-beta1~3^2~4057 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0efd51e1d282527f164f377b3fb0c33de958fb6c;p=thirdparty%2Fasterisk.git This should already be called while locked. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47404 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 1ade4159b6..f79461e4cb 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -2090,7 +2090,6 @@ static int ast_remove_hint(struct ast_exten *e) if (!e) return -1; - AST_RWLIST_WRLOCK(&hints); AST_RWLIST_TRAVERSE_SAFE_BEGIN(&hints, hint, list) { if (hint->exten == e) { cbprev = NULL; @@ -2110,7 +2109,6 @@ static int ast_remove_hint(struct ast_exten *e) } } AST_RWLIST_TRAVERSE_SAFE_END - AST_RWLIST_UNLOCK(&hints); return res; }