Revert mistaken edit, fix obsolete code in enoise_utils

This commit is contained in:
Ulf Wiger 2025-03-07 13:50:09 +01:00
parent 0c83e00ddf
commit 892cd06d0f
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
{plugins, [rebar3_hex]}. {plugins, [rebar3_hex]}.
{deps, [{enacl, {git, "https://git.qpq.swiss/QPQ-AG/enacl.git", {ref, "4eb7ec70"}}}]}. {deps, [{enacl, {git, "https://git.qpq.swiss/QPQ-AG/enacl.git", {ref, "4eb7ec70"}}}]}.
{profiles, [{test, [{deps, [{jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}}]}]}
]}.
{xref_checks, [undefined_function_calls, undefined_functions, {xref_checks, [undefined_function_calls, undefined_functions,
locals_not_used, locals_not_used,
deprecated_function_calls, deprecated_functions]}. deprecated_function_calls, deprecated_functions]}.

View File

@ -26,7 +26,7 @@ echo_srv(Port, Protocol, SKP, SrvOpts) ->
AcceptRes = AcceptRes =
try try
enoise:accept(TcpSock, Opts) enoise:accept(TcpSock, Opts)
catch _:R -> gen_tcp:close(TcpSock), {error, {R, erlang:get_stacktrace()}} end, catch _:R:T -> gen_tcp:close(TcpSock), {error, {R, T}} end,
gen_tcp:close(LSock), gen_tcp:close(LSock),