Permalink
Browse files

Fixed minr bug

  • Loading branch information...
1 parent 0f509ee commit b06e5b8ba7bd688b2ecb56f4491c4ec5c520ec6e @0x6e6562 0x6e6562 committed Jul 24, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/rfc4627_jsonrpc_registry.erl
@@ -45,7 +45,7 @@
init(_Args) ->
case mnesia:create_table(?TABLE_NAME, [{attributes,[key, value]}]) of
{atomic,ok} ->
- error_logger:error_msg("Creating new ETS table for ~p~n", [?MODULE]),
+ error_logger:error_msg("Creating new mnesia table for ~p~n", [?MODULE]),
ok;
{aborted, {already_exists, ?TABLE_NAME}} -> ok
end,
@@ -95,7 +95,7 @@ handle_info({'DOWN', _MonitorRef, process, DownPid, _Reason}, State) ->
mnesia:transaction(
fun() ->
mnesia:delete({?TABLE_NAME,{service_pid, DownPid}}),
- mnesia:write({?TABLE_NAME,{service, ServiceName}})
+ mnesia:delete({?TABLE_NAME,{service, ServiceName}})
end),
{noreply, State}
end.

0 comments on commit b06e5b8

Please sign in to comment.