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

fix(shared_sub): discard all unexpected msgs

Shawn 4 лет назад
Родитель
Сommit
5fbf83e7f0
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/emqx_shared_sub.erl

+ 1 - 2
src/emqx_shared_sub.erl

@@ -352,8 +352,7 @@ handle_info({'DOWN', _MRef, process, SubPid, _Reason}, State = #state{pmon = PMo
     cleanup_down(SubPid),
     {noreply, update_stats(State#state{pmon = emqx_pmon:erase(SubPid, PMon)})};
 
-handle_info(Info, State) ->
-    ?LOG(error, "Unexpected info: ~p", [Info]),
+handle_info(_Info, State) ->
     {noreply, State}.
 
 terminate(_Reason, _State) ->