Skip to content

Commit

Permalink
Correcting signature on function handling a command_reply
Browse files Browse the repository at this point in the history
The function in ered_client handling stray messages from a defunct client
has a faulty signature which could result it a crash.

Signed-off-by: Björn Svensson <[email protected]>
  • Loading branch information
bjosv committed Dec 9, 2024
1 parent 847a2ac commit a052644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ered_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ handle_info({{command_reply, Pid}, Reply}, State = #st{pending = Pending, connec
{noreply, process_commands(State#st{pending = NewPending})}
end;

handle_info({command_reply, _Pid, _Reply}, State) ->
handle_info({{command_reply, _Pid}, _Reply}, State) ->
%% Stray message from a defunct client? ignore!
{noreply, State};

Expand Down

0 comments on commit a052644

Please sign in to comment.