Skip to content

Commit

Permalink
Fixed minr bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e6562 committed Jul 24, 2009
1 parent 0f509ee commit b06e5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rfc4627_jsonrpc_registry.erl
Expand Up @@ -45,7 +45,7 @@
init(_Args) -> init(_Args) ->
case mnesia:create_table(?TABLE_NAME, [{attributes,[key, value]}]) of case mnesia:create_table(?TABLE_NAME, [{attributes,[key, value]}]) of
{atomic,ok} -> {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; ok;
{aborted, {already_exists, ?TABLE_NAME}} -> ok {aborted, {already_exists, ?TABLE_NAME}} -> ok
end, end,
Expand Down Expand Up @@ -95,7 +95,7 @@ handle_info({'DOWN', _MonitorRef, process, DownPid, _Reason}, State) ->
mnesia:transaction( mnesia:transaction(
fun() -> fun() ->
mnesia:delete({?TABLE_NAME,{service_pid, DownPid}}), mnesia:delete({?TABLE_NAME,{service_pid, DownPid}}),
mnesia:write({?TABLE_NAME,{service, ServiceName}}) mnesia:delete({?TABLE_NAME,{service, ServiceName}})
end), end),
{noreply, State} {noreply, State}
end. end.
Expand Down

0 comments on commit b06e5b8

Please sign in to comment.