summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-12-07 00:35:14 -0500
committerCorey Farrell <git@cfware.com>2017-12-07 09:51:55 -0600
commit14bb88a97ac94ee48301321cdadad7bca95d0ce9 (patch)
tree018e1c3cd6280376365429866255b5dbeba46bea
parentd5b58791573b53a140f1d857162e4af64ea1065c (diff)
translate: Skip matrix_rebuild during shutdown.
Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e
-rw-r--r--main/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/translate.c b/main/translate.c
index 70e97f955..ce4745ce0 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -1307,7 +1307,7 @@ int ast_unregister_translator(struct ast_translator *t)
}
AST_RWLIST_TRAVERSE_SAFE_END;
- if (found) {
+ if (found && !ast_shutting_down()) {
matrix_rebuild(0);
}