Просмотр исходного кода

fix(authentication): fix unhook

zhouzb 4 лет назад
Родитель
Сommit
c323113068
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_authentication/src/emqx_authentication.erl

+ 1 - 1
apps/emqx_authentication/src/emqx_authentication.erl

@@ -92,7 +92,7 @@ enable() ->
     % end.
 
 disable() ->
-    emqx:unhook('client.authenticate', {}),
+    emqx:unhook('client.authenticate', fun emqx_authentication:authenticate/1),
     % emqx:unhook('client.enhanced_authenticate', {}),
     ok.