]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
translate: Skip matrix_rebuild during shutdown.
authorCorey Farrell <git@cfware.com>
Thu, 7 Dec 2017 05:35:14 +0000 (00:35 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 7 Dec 2017 15:52:04 +0000 (09:52 -0600)
Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e

main/translate.c

index f0a7f72c3f3f5b1fc0cdb702508e12ec57a757c3..4ffe27c336c731c7bd8b3ee5fe704b4c355dd2bb 100644 (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);
        }