diff --git a/src/framework/emqttb_group.erl b/src/framework/emqttb_group.erl index bcb21b2..ddea4ad 100644 --- a/src/framework/emqttb_group.erl +++ b/src/framework/emqttb_group.erl @@ -331,7 +331,7 @@ scale_down(0, S) -> scale_down(NRepeats, S = #s{id = Group}) -> case ets:first(live_id_pool(Group)) of '$end_of_table' -> - ok; + S; Id -> case ets:lookup(live_id_pool(Group), Id) of [] ->