mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
make sure db is reconnected on « unknown error »
This commit is contained in:
parent
570f927eca
commit
4c89ac95e2
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ public:
|
|||
} catch (const soci::soci_error &e) {
|
||||
lWarning() << "Catched exception in MainDb::" << info.name << ".";
|
||||
soci::soci_error::error_category category = e.get_error_category();
|
||||
if (category == soci::soci_error::connection_error && info.mainDb->forceReconnect()) {
|
||||
if ((category == soci::soci_error::connection_error
|
||||
|| category == soci::soci_error::unknown) && info.mainDb->forceReconnect()) {
|
||||
mResult = mFunction();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue