Skip to content

Commit

Permalink
Fix dialyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Aug 24, 2024
1 parent 1745bc2 commit 5d2d566
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/xmpp_socket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,15 @@ starttls(_, _) ->
{error, inet:posix() | atom() | binary()}.
finish_tls_handshake(#socket_state{sockmod = fast_tls,
socket = Socket} = SocketData) ->
fast_tls:setopts(Socket, [{active, false}]),
case fast_tls:finish_handshake(Socket, 5000) of
ok ->
{ok, SocketData};
{error, _} = Err ->
Err
end.
fast_tls:setopts(Socket, [{active, false}]),
case fast_tls:finish_handshake(Socket, 5000) of
ok ->
{ok, SocketData};
{error, _} = Err ->
Err
end;
finish_tls_handshake(SocketData) ->
{ok, SocketData}.

compress(SocketData) -> compress(SocketData, undefined).

Expand Down

0 comments on commit 5d2d566

Please sign in to comment.