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

fix(session): takenover

Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
gsychev 3 лет назад
Родитель
Сommit
db368e83b1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/emqx/src/emqx_session.erl

+ 2 - 2
apps/emqx/src/emqx_session.erl

@@ -806,8 +806,8 @@ terminate(ClientInfo, Reason, Session) ->
 
 run_terminate_hooks(ClientInfo, discarded, Session) ->
     run_hook('session.discarded', [ClientInfo, info(Session)]);
-run_terminate_hooks(ClientInfo, takeovered, Session) ->
-    run_hook('session.takeovered', [ClientInfo, info(Session)]);
+run_terminate_hooks(ClientInfo, takenover, Session) ->
+    run_hook('session.takenover', [ClientInfo, info(Session)]);
 run_terminate_hooks(ClientInfo, Reason, Session) ->
     run_hook('session.terminated', [ClientInfo, Reason, info(Session)]).