mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-19 09:55:41 -07:00
Merge "astobj2: Fix shutdown order." into 13
This commit is contained in:
+3
-2
@@ -887,8 +887,11 @@ int astobj2_init(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
ast_register_cleanup(astobj2_cleanup);
|
||||
|
||||
if (container_init() != 0) {
|
||||
fclose(ref_log);
|
||||
ref_log = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -896,7 +899,5 @@ int astobj2_init(void)
|
||||
ast_cli_register_multiple(cli_astobj2, ARRAY_LEN(cli_astobj2));
|
||||
#endif /* defined(AO2_DEBUG) */
|
||||
|
||||
ast_register_cleanup(astobj2_cleanup);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user