Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 3c77d37

Browse files
Do not snapshot when a new client is registered
1 parent 10d5b18 commit 3c77d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mqtt_machine.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ apply(Meta, {register, ClientId, Pid}, #machine_state{client_ids = Ids} = State0
5454
{Effects0, Ids}
5555
end,
5656
State = State0#machine_state{client_ids = maps:put(ClientId, Pid, Ids1)},
57-
{State, ok, Effects ++ snapshot_effects(Meta, State)};
57+
{State, ok, Effects};
5858

5959
apply(Meta, {unregister, ClientId, Pid}, #machine_state{client_ids = Ids} = State0) ->
6060
State = case maps:find(ClientId, Ids) of

0 commit comments

Comments
 (0)