25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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 =
lists:foldl(
fun(_, {stop, _, _} = Res) -> Res;
({_Op, Data}, {Tag, Res, S}) ->
({_Op, Data}, {Tag2, Res, S}) ->
case handle_info({tcp_decoded, TCPSock, Data}, S) of
{stop, _, _} = Stop ->
Stop;
{_, NewState} ->
{Tag, Res, NewState}
{Tag2, Res, NewState}
end
end, Acc0, Packets),
case Res2 of
{noreply, _, State} ->
{noreply, State};
{noreply, _, State2} ->
{noreply, State2};
{stop_after, Res3, State2} ->
{stop, Res3, State2};
_ ->
Res2
end;