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.