Merge pull request #5105 from terry-xiaoyu/clean_emqx_shared_subscription2

fix(shared_sub): discard all unexpected msgs
This commit is contained in:
tigercl 2021-06-28 11:07:10 +08:00 committed by GitHub
commit 637cd5e804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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) ->