diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/file_handle_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index e5ab386c6a..80b92d779e 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -749,7 +749,7 @@ handle_call({obtain, Pid}, From, State = #fhc_state { obtain_limit = Limit, obtain_count = Count, obtain_pending = Pending, elders = Elders }) - when Count >= Limit -> + when Limit =/= infinity andalso Count >= Limit -> {noreply, State #fhc_state { obtain_pending = [From | Pending], elders = dict:erase(Pid, Elders) }}; handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count, |
