mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
According to fast_tls, only atom and binary may accompany error tuple
This commit is contained in:
parent
7b8bd960c6
commit
e3fd120fd4
@ -956,8 +956,7 @@ recv_data({fast_tls, Sock}, Data) ->
|
||||
case fast_tls:recv_data(Sock, Data) of
|
||||
{ok, _} = OK -> OK;
|
||||
{error, E} when is_atom(E) -> {error, {socket, E}};
|
||||
{error, E} when is_binary(E) -> {error, {tls, E}};
|
||||
{error, _} = Err -> Err
|
||||
{error, E} when is_binary(E) -> {error, {tls, E}}
|
||||
end;
|
||||
recv_data(_, Data) ->
|
||||
{ok, Data}.
|
||||
|
Loading…
Reference in New Issue
Block a user