translate: Skip matrix_rebuild during shutdown.

Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e
This commit is contained in:
Corey Farrell
2017-12-07 09:52:04 -06:00
parent 93859f9aca
commit 2691ee68ce
+1 -1
View File
@@ -1298,7 +1298,7 @@ int ast_unregister_translator(struct ast_translator *t)
}
AST_RWLIST_TRAVERSE_SAFE_END;
if (found) {
if (found && !ast_shutting_down()) {
matrix_rebuild(0);
}