X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.cpp;h=9ff9ff93c51dd69693a5f5cf5cff146d8b239dd1;hb=7bf1ebc67b4674af9e38dece3f6584d2376b6538;hp=1d8098dd7789606f2a4ab0bdb0031f943591f460;hpb=a071b431314816ce47b00918d8baddc0ec546eb1;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index 1d8098dd..9ff9ff93 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -380,13 +380,10 @@ bool Core::initStorage(const QString &backend, const QVariantMap &settings, bool return false; // trigger setup process if (storage->setup(settings)) return initStorage(backend, settings, false); - // if setup wasn't successfull we mark the backend as unavailable + // if initialization wasn't successful, we quit to keep from coming up unconfigured case Storage::NotAvailable: - qCritical() << "Selected storage backend is not available:" << backend; - storage->deleteLater(); - _storageBackends.remove(backend); - storage = 0; - return false; + qCritical() << "FATAL: Selected storage backend is not available:" << backend; + exit(EXIT_FAILURE); case Storage::IsReady: // delete all other backends _storageBackends.remove(backend);