[asterisk-commits] oej: branch oej/adb-codename-appleraisin r183919 - /team/oej/adb-codename-app...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 24 11:02:38 CDT 2009


Author: oej
Date: Tue Mar 24 11:02:35 2009
New Revision: 183919

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183919
Log:
Don't unlock if you haven't locked. Unless you want to be really, really sure, like grandma.

Modified:
    team/oej/adb-codename-appleraisin/main/db.c

Modified: team/oej/adb-codename-appleraisin/main/db.c
URL: http://svn.digium.com/svn-view/asterisk/team/oej/adb-codename-appleraisin/main/db.c?view=diff&rev=183919&r1=183918&r2=183919
==============================================================================
--- team/oej/adb-codename-appleraisin/main/db.c (original)
+++ team/oej/adb-codename-appleraisin/main/db.c Tue Mar 24 11:02:35 2009
@@ -288,8 +288,8 @@
 		data.size = strlen(value) + 1;
 		res = astdb->put(astdb, &key, &data, 0);
 		astdb->sync(astdb, 0);
-	}
-	ast_mutex_unlock(&dblock);
+		ast_mutex_unlock(&dblock);
+	}
 	if (res)
 		ast_log(LOG_WARNING, "Unable to put value '%s' for key '%s' in family '%s'\n", value, keys, family);
 	return res;




More information about the asterisk-commits mailing list