Merged revisions 70560 via svnmerge from
authorJason Parker <jparker@digium.com>
Wed, 20 Jun 2007 22:55:47 +0000 (22:55 +0000)
committerJason Parker <jparker@digium.com>
Wed, 20 Jun 2007 22:55:47 +0000 (22:55 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70560 | qwell | 2007-06-20 17:55:21 -0500 (Wed, 20 Jun 2007) | 1 line

Fix a stupid mistake in my last cdr_pgsql race condition fix
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70561 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_pgsql.c

index ac0373c..4f3901c 100644 (file)
@@ -313,7 +313,7 @@ static int reload(void)
        ast_mutex_lock(&pgsql_lock);
        my_unload_module();
        res = my_load_module();
-       ast_mutex_lock(&pgsql_lock);
+       ast_mutex_unlock(&pgsql_lock);
        return res;
 }