Commits

arkdro  committed ce0cc3a

clear from field after replying

  • Participants
  • Parent commits 15707dd

Comments (0)

Files changed (1)

File erlang/src/c_server.erl

     Term = binary_to_term(Data),
     error_logger:info_report({handle_info, data, Term}),
     gen_server:reply(From, {ok, Term}),
-    {noreply, State};
+    {noreply, State#state{from=undefined}};
 handle_info(_I, State) ->
     error_logger:info_report({handle_info, unknown, _I}),
     {noreply, State}.