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.