From 3ef8bcf3f483b9c15566031433c6a420c65260ce Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 19 Apr 2012 08:50:36 +0000 Subject: [PATCH] + avoid exiting if the library has no "local" books (so nothing to serve) --- src/server/kiwix-serve.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 4503a97..0931a97 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -472,7 +472,6 @@ int main(int argc, char **argv) { /* Check if the library is not empty (or only remote books)*/ if (libraryManager.getBookCount(true, false)==0) { cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl; - exit(1); } } else { if (!libraryManager.addBookFromPath(zimPath, zimPath, "", false)) {