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:
parent
4f82c77e7a
commit
fbf8d3e111
|
@ -246,7 +246,7 @@ pick(Strategy, ClientId, Group, Topic, FailedSubs) ->
|
||||||
do_pick(Strategy, ClientId, Group, Topic, FailedSubs) ->
|
do_pick(Strategy, ClientId, Group, Topic, FailedSubs) ->
|
||||||
All = subscribers(Group, Topic),
|
All = subscribers(Group, Topic),
|
||||||
case All -- FailedSubs of
|
case All -- FailedSubs of
|
||||||
[] when FailedSubs =:= [] ->
|
[] when All =:= [] ->
|
||||||
%% Genuinely no subscriber
|
%% Genuinely no subscriber
|
||||||
false;
|
false;
|
||||||
[] ->
|
[] ->
|
||||||
|
|
Loading…
Reference in New Issue