diff options
author | Loïc Hoguin <[email protected]> | 2013-06-19 16:58:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-06-19 16:58:49 +0200 |
commit | 033afb1a440e613b6c54f1837b1df4e798040719 (patch) | |
tree | d062b579e23954b78ca8022f75e031ae4311c74e /src/ranch_conns_sup.erl | |
parent | 480d48a5dc6becb4aeb88f61e688deccaa9a1caf (diff) | |
download | ranch-033afb1a440e613b6c54f1837b1df4e798040719.tar.gz ranch-033afb1a440e613b6c54f1837b1df4e798040719.tar.bz2 ranch-033afb1a440e613b6c54f1837b1df4e798040719.zip |
Catch exceptions in ranch_conns_sup:active_connections/1
It can be called from other nodes too.
Diffstat (limited to 'src/ranch_conns_sup.erl')
-rw-r--r-- | src/ranch_conns_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl index 0ab4427..54d6758 100644 --- a/src/ranch_conns_sup.erl +++ b/src/ranch_conns_sup.erl @@ -75,7 +75,7 @@ start_protocol(SupPid, Socket) -> -spec active_connections(pid()) -> non_neg_integer(). active_connections(SupPid) -> Tag = erlang:monitor(process, SupPid), - erlang:send(SupPid, {?MODULE, active_connections, self(), Tag}, + catch erlang:send(SupPid, {?MODULE, active_connections, self(), Tag}, [noconnect]), receive {Tag, Ret} -> |