Merge "translate: Skip matrix_rebuild during shutdown."
authorJenkins2 <jenkins2@gerrit.asterisk.org>
Thu, 7 Dec 2017 20:33:47 +0000 (14:33 -0600)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 7 Dec 2017 20:33:47 +0000 (14:33 -0600)
main/translate.c

index 70e97f9..ce4745c 100644 (file)
@@ -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);
        }