fix(quic): return empty list for dead 'Socket'
This commit is contained in:
parent
087aa1dd53
commit
570e096b56
|
@ -47,8 +47,10 @@ peercert(_S) ->
|
||||||
nossl.
|
nossl.
|
||||||
|
|
||||||
getstat(Socket, Stats) ->
|
getstat(Socket, Stats) ->
|
||||||
Res = quicer:getstats(Socket, Stats),
|
case quicer:getstats(Socket, Stats) of
|
||||||
{ok, lists:keyreplace(send_pend, 1, Res, {send_pend, 0})}.
|
{error, _} -> [];
|
||||||
|
Res -> {ok, Res}
|
||||||
|
end.
|
||||||
|
|
||||||
setopts(_Socket, _Opts) ->
|
setopts(_Socket, _Opts) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue