+ avoid exiting if the library has no "local" books (so nothing to serve)

This commit is contained in:
kelson42 2012-04-19 08:50:36 +00:00
parent 1a2deeac46
commit 3ef8bcf3f4

View File

@ -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)) {