From ec2fe4ce8c00caeaadf9a18b11ee440dc79fd308 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Fri, 20 Jan 2012 10:13:59 +0100 Subject: [PATCH] Make close/1 resilient to noproc Getting noproc exceptions here is ok, we simply ignore such errors. --- src/lsm_btree.erl | 3 ++- src/lsm_btree_level.erl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lsm_btree.erl b/src/lsm_btree.erl index dcb3925..03323d3 100644 --- a/src/lsm_btree.erl +++ b/src/lsm_btree.erl @@ -22,7 +22,8 @@ close(Ref) -> try gen_server:call(Ref, close) catch - exit:{noproc,_} -> ok + exit:{noproc,_} -> ok; + exit:noproc -> ok end. diff --git a/src/lsm_btree_level.erl b/src/lsm_btree_level.erl index f2a719f..f25ab13 100644 --- a/src/lsm_btree_level.erl +++ b/src/lsm_btree_level.erl @@ -44,7 +44,8 @@ close(Ref) -> try call(Ref, close) catch - exit:{noproc,_} -> ok + exit:{noproc,_} -> ok; + exit:noproc -> ok end.