summaryrefslogtreecommitdiff
path: root/main
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 00:35:14 -0500
commitc2c9995830dd6cb5289834e43d88c9315dea8858 (patch)
tree8fcc687c2766a5356b2e587c7978ed3c476ccc67 /main
parent3fc1490bcb3611d2830a9ba37e36a8fa258f60b6 (diff)
translate: Skip matrix_rebuild during shutdown.
Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e
Diffstat (limited to 'main')
-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);
}