[asterisk-commits] tilghman: branch 1.4 r298392 - /branches/1.4/cdr/cdr_sqlite.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 16 00:28:09 UTC 2010
Author: tilghman
Date: Wed Dec 15 18:28:04 2010
New Revision: 298392
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=298392
Log:
Unregister before shutting down the connection, to avoid a race.
(closes issue #18481)
Reported by: pabelanger
Patches:
20101215__issue18481.diff.txt uploaded by tilghman (license 14)
Tested by: pabelanger
Modified:
branches/1.4/cdr/cdr_sqlite.c
Modified: branches/1.4/cdr/cdr_sqlite.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/cdr/cdr_sqlite.c?view=diff&rev=298392&r1=298391&r2=298392
==============================================================================
--- branches/1.4/cdr/cdr_sqlite.c (original)
+++ branches/1.4/cdr/cdr_sqlite.c Wed Dec 15 18:28:04 2010
@@ -167,9 +167,10 @@
static int unload_module(void)
{
- if (db)
+ ast_cdr_unregister(name);
+ if (db) {
sqlite_close(db);
- ast_cdr_unregister(name);
+ }
return 0;
}
More information about the asterisk-commits
mailing list