fix(mqtt_bridge): use correct gen_statem reply action

This commit is contained in:
Andrew Mayorov 2023-01-26 21:12:05 +03:00
parent bafc430184
commit c95f979413
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ connected({call, From}, {send_to_remote, Msg}, State) ->
{ok, NState} ->
{keep_state, NState, [{reply, From, ok}]};
{error, Reason} ->
{keep_state_and_data, [[reply, From, {error, Reason}]]}
{keep_state_and_data, {reply, From, {error, Reason}}}
end;
connected(cast, {send_to_remote_async, Msg, Callback}, State) ->
_ = do_send_async(State, Msg, Callback),