Make close/1 resilient to noproc

Getting noproc exceptions here is ok, we simply
ignore such errors.
This commit is contained in:
Kresten Krab Thorup 2012-01-20 10:13:59 +01:00
parent 30a0bd4b01
commit ec2fe4ce8c
2 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,8 @@ close(Ref) ->
try
gen_server:call(Ref, close)
catch
exit:{noproc,_} -> ok
exit:{noproc,_} -> ok;
exit:noproc -> ok
end.

View file

@ -44,7 +44,8 @@ close(Ref) ->
try
call(Ref, close)
catch
exit:{noproc,_} -> ok
exit:{noproc,_} -> ok;
exit:noproc -> ok
end.