Skip to content
Permalink
Browse files
Fix a bug related to the change in 5aab9df
  • Loading branch information
Brian Mitchell authored and rnewson committed Jul 28, 2014
1 parent aa817bd commit cd8777bcc754e32fe64d58d57fbc516934f9738e
Showing 1 changed file with 2 additions and 2 deletions.
@@ -114,8 +114,8 @@ terminate(_Reason, St) ->

handle_call({lookup, Key}, _From, St) ->
Reply = case ets:lookup(St#st.objects, Key) of
[#entry{val=Val}] ->
accessed(St, Key),
[#entry{val=Val} | _] ->
accessed(Key, St),
{ok, Val};
[] ->
not_found

0 comments on commit cd8777b

Please sign in to comment.