mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-27 14:41:58 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@298392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -167,9 +167,10 @@ static int sqlite_log(struct ast_cdr *cdr)
|
|||||||
|
|
||||||
static int unload_module(void)
|
static int unload_module(void)
|
||||||
{
|
{
|
||||||
if (db)
|
|
||||||
sqlite_close(db);
|
|
||||||
ast_cdr_unregister(name);
|
ast_cdr_unregister(name);
|
||||||
|
if (db) {
|
||||||
|
sqlite_close(db);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user