mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
According to fast_tls, only atom and binary may accompany error tuple
This commit is contained in:
parent
7b8bd960c6
commit
e3fd120fd4
1 changed files with 1 additions and 2 deletions
|
@ -956,8 +956,7 @@ recv_data({fast_tls, Sock}, Data) ->
|
||||||
case fast_tls:recv_data(Sock, Data) of
|
case fast_tls:recv_data(Sock, Data) of
|
||||||
{ok, _} = OK -> OK;
|
{ok, _} = OK -> OK;
|
||||||
{error, E} when is_atom(E) -> {error, {socket, E}};
|
{error, E} when is_atom(E) -> {error, {socket, E}};
|
||||||
{error, E} when is_binary(E) -> {error, {tls, E}};
|
{error, E} when is_binary(E) -> {error, {tls, E}}
|
||||||
{error, _} = Err -> Err
|
|
||||||
end;
|
end;
|
||||||
recv_data(_, Data) ->
|
recv_data(_, Data) ->
|
||||||
{ok, Data}.
|
{ok, Data}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue