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:
parent
5592f8df1a
commit
83418c3195
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user