From: Corey Farrell Date: Thu, 7 Dec 2017 05:35:14 +0000 (-0500) Subject: translate: Skip matrix_rebuild during shutdown. X-Git-Tag: 15.2.0-rc1~61^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14bb88a97ac94ee48301321cdadad7bca95d0ce9;p=thirdparty%2Fasterisk.git translate: Skip matrix_rebuild during shutdown. Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e --- diff --git a/main/translate.c b/main/translate.c index 70e97f9556..ce4745ce0e 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); }