fix(share sub): fix the issue that the number of subscriptions dropped to 0 during the picking subscriber and caused a crash

This commit is contained in:
zhouzb 2020-12-30 10:27:21 +08:00 committed by Shawn
parent 4f82c77e7a
commit fbf8d3e111
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ pick(Strategy, ClientId, Group, Topic, FailedSubs) ->
do_pick(Strategy, ClientId, Group, Topic, FailedSubs) ->
All = subscribers(Group, Topic),
case All -- FailedSubs of
[] when FailedSubs =:= [] ->
[] when All =:= [] ->
%% Genuinely no subscriber
false;
[] ->