mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 23:15:59 +00:00
Don't lose cdr_syslog config on a reload.
(closes issue #18679) Reported by: enegaard Patches: issue18679_seanbright.patch uploaded by seanbright (license 71) Tested by: enegaard git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@317480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -264,8 +264,10 @@ static int reload(void)
|
|||||||
return AST_MODULE_LOAD_DECLINE;
|
return AST_MODULE_LOAD_DECLINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
free_config();
|
if ((res = load_config(1))) {
|
||||||
res = load_config(1);
|
free_config();
|
||||||
|
}
|
||||||
|
|
||||||
AST_RWLIST_UNLOCK(&sinks);
|
AST_RWLIST_UNLOCK(&sinks);
|
||||||
|
|
||||||
return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
|
return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user