Fix dialyzer warning

This commit is contained in:
Paweł Chmielowski 2023-01-16 12:14:21 +01:00
parent 89918865b0
commit 26a7107cd5
1 changed files with 2 additions and 4 deletions

View File

@ -216,10 +216,8 @@ handle_info({Tag, TCPSock, TCPData},
case Res2 of
{noreply, _, State2} ->
{noreply, State2};
{stop_after, Res3, State2} ->
{stop, Res3, State2};
_ ->
Res2
{Tag3, Res3, State2} when Tag3 == stop; Tag3 == stop_after ->
{stop, Res3, State2}
end;
handle_info({Tag, TCPSock, TCPData},
#state{codec = Codec} = State)