From c2c9995830dd6cb5289834e43d88c9315dea8858 Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Thu, 7 Dec 2017 00:35:14 -0500
Subject: [PATCH] translate: Skip matrix_rebuild during shutdown.

Change-Id: I1e5eef4029cba56e33d786c5a5ade8091e531a1e
---
 main/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 
-- 
GitLab