From 44c37571cc4b867a236830a7ce65554845f30416 Mon Sep 17 00:00:00 2001 From: Serge Tupchii Date: Wed, 12 Jun 2024 15:33:35 +0300 Subject: [PATCH] fix(clusterlink): ignore not_registered error --- apps/emqx_cluster_link/src/emqx_cluster_link_config.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_cluster_link/src/emqx_cluster_link_config.erl b/apps/emqx_cluster_link/src/emqx_cluster_link_config.erl index c28755ac1..2b5dea2e8 100644 --- a/apps/emqx_cluster_link/src/emqx_cluster_link_config.erl +++ b/apps/emqx_cluster_link/src/emqx_cluster_link_config.erl @@ -164,7 +164,7 @@ toggle_hook_and_broker([_ | _] = _NewEnabledLinks, [] = _OldEnabledLinks) -> ok = emqx_cluster_link:register_external_broker(), ok = emqx_cluster_link:put_hook(); toggle_hook_and_broker([] = _NewEnabledLinks, _OldLinks) -> - ok = emqx_cluster_link:unregister_external_broker(), + _ = emqx_cluster_link:unregister_external_broker(), ok = emqx_cluster_link:delete_hook(); toggle_hook_and_broker(_, _) -> ok.