Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
4c89ac95
Commit
4c89ac95
authored
Jan 31, 2018
by
jehan
Browse files
make sure db is reconnected on « unknown error »
parent
570f927e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/db/main-db.cpp
src/db/main-db.cpp
+2
-1
No files found.
src/db/main-db.cpp
View file @
4c89ac95
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment