From 2691ee68ce38caec6910b0c6b39f7953b828e15b 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 f0a7f72c3f..4ffe27c336 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -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);
 	}
 
-- 
GitLab