Skip to content

Commit

Permalink
Handle restarting the last user id on scenario start
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Dec 1, 2023
1 parent 7665b20 commit c287937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/amoc_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ handle_start_scenario(Scenario, Settings, #state{status = Status} = State)
when Status =:= idle; Status =:= finished ->
case init_scenario(Scenario, Settings) of
{ok, ScenarioState} ->
NewState = State#state{scenario = Scenario,
NewState = State#state{last_user_id = 0,
scenario = Scenario,
scenario_state = ScenarioState,
status = running},
{ok, NewState};
Expand Down

0 comments on commit c287937

Please sign in to comment.