Commit e7bf6fa0 authored by François Grisez's avatar François Grisez

Prevent conference server aborting when database connection fails

Instead, the server terminates printing a error message on
the standard output.
parent feef8bd7
Pipeline #6469 passed with stages
in 42 minutes and 49 seconds
......@@ -92,7 +92,9 @@ void ConferenceServer::_init () {
mCore->addProxyConfig(proxy);
mCore->setDefaultProxyConfig(proxy);
mCore->start();
linphone::Status err = mCore->start();
if (err == -2) LOGF("Linphone Core couldn't start because the connection to the database has failed");
if (err < 0) LOGF("Linphone Core starting failed");
RegistrarDb::get()->addStateListener(shared_from_this());
if (RegistrarDb::get()->isWritable())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment