Fixed state of gen_server when finalizing prepared statement

This commit is contained in:
Alexey Romanov
2010-12-09 15:47:08 +03:00
parent cfd016d991
commit 70050ec3cf

View File

@@ -688,7 +688,7 @@ handle_call({finalize, Ref}, _From, State = #state{port = Port, refs = Refs}) ->
case exec(Port, {finalize, Index}) of case exec(Port, {finalize, Index}) of
ok -> ok ->
Reply = ok, Reply = ok,
NewState = dict:erase(Ref, Refs); NewState = State#state{refs = dict:erase(Ref, Refs)};
Error -> Error ->
Reply = Error, Reply = Error,
NewState = State NewState = State