25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix warning in mqtt_bridge

This commit is contained in:
Paweł Chmielowski 2023-01-16 11:01:04 +01:00
parent 5592f8df1a
commit 83418c3195

View File

@ -200,17 +200,19 @@ handle_info({Tag, TCPSock, TCPData},
Res2 = Res2 =
lists:foldl( lists:foldl(
fun(_, {stop, _, _} = Res) -> Res; fun(_, {stop, _, _} = Res) -> Res;
({_Op, Data}, {Tag, Res, S}) -> ({_Op, Data}, {Tag2, Res, S}) ->
case handle_info({tcp_decoded, TCPSock, Data}, S) of case handle_info({tcp_decoded, TCPSock, Data}, S) of
{stop, _, _} = Stop -> {stop, _, _} = Stop ->
Stop; Stop;
{_, NewState} -> {_, NewState} ->
{Tag, Res, NewState} {Tag2, Res, NewState}
end end
end, Acc0, Packets), end, Acc0, Packets),
case Res2 of case Res2 of
{noreply, _, State} -> {noreply, _, State2} ->
{noreply, State}; {noreply, State2};
{stop_after, Res3, State2} ->
{stop, Res3, State2};
_ -> _ ->
Res2 Res2
end; end;