Parcourir la source

change return tuple of close_session

Gilbert Wong il y a 7 ans
Parent
commit
015901050f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/emqx_session.erl

+ 1 - 1
src/emqx_session.erl

@@ -383,7 +383,7 @@ handle_call(stats, _From, State) ->
     reply(stats(State), State);
     reply(stats(State), State);
 
 
 handle_call(close, _From, State) ->
 handle_call(close, _From, State) ->
-    {stop, normal, State};
+    {stop, normal, ok, State};
 
 
 handle_call(Req, _From, State) ->
 handle_call(Req, _From, State) ->
     emqx_logger:error("[Session] unexpected call: ~p", [Req]),
     emqx_logger:error("[Session] unexpected call: ~p", [Req]),