Make close/1 resilient to noproc
Getting noproc exceptions here is ok, we simply ignore such errors.
This commit is contained in:
parent
30a0bd4b01
commit
ec2fe4ce8c
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,8 @@ close(Ref) ->
|
|||
try
|
||||
gen_server:call(Ref, close)
|
||||
catch
|
||||
exit:{noproc,_} -> ok
|
||||
exit:{noproc,_} -> ok;
|
||||
exit:noproc -> ok
|
||||
end.
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,8 @@ close(Ref) ->
|
|||
try
|
||||
call(Ref, close)
|
||||
catch
|
||||
exit:{noproc,_} -> ok
|
||||
exit:{noproc,_} -> ok;
|
||||
exit:noproc -> ok
|
||||
end.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue