From 08d3f73e8eb007b10fe5433bce883e08ce344f73 Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Mon, 14 Jul 2008 19:44:27 +0200 Subject: [PATCH] Update launch code to correctly handle the case where the schema is already created. --- lib/etorrent-1.0/src/etorrent.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/etorrent-1.0/src/etorrent.erl b/lib/etorrent-1.0/src/etorrent.erl index 40e6517..ff55295 100644 --- a/lib/etorrent-1.0/src/etorrent.erl +++ b/lib/etorrent-1.0/src/etorrent.erl @@ -27,7 +27,10 @@ stop(_State) -> db_initialize() -> %% May already exist, we do not care at the moment. - _R = mnesia:create_schema([]), + case mnesia:create_schema([]) of + ok -> error_logger:info_report([schema, created]); + E -> error_logger:info_report([schema, E]) + end, etorrent_mnesia_init:init(). %%-------------------------------------------------------------------- -- 2.11.4.GIT