Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
8ef28b47
Commit
8ef28b47
authored
Apr 17, 2020
by
Peter Jankuliak
Browse files
Print debug if exception is thrown on Android
parent
5296de48
Changes
1
Hide whitespace changes
Inline
Side-by-side
android/ouinet/src/main/cpp/native-lib.cpp
View file @
8ef28b47
...
...
@@ -94,14 +94,21 @@ void start_client_thread(const vector<string>& args, const vector<string>& extra
g_client
=
make_unique
<
ouinet
::
Client
>
(
g_ios
,
move
(
cfg
));
g_client
->
start
();
}
catch
(
std
::
exception
&
e
)
{
catch
(
const
std
::
exception
&
e
)
{
debug
(
"Failed to start Ouinet client:"
);
debug
(
"%s"
,
e
.
what
());
g_client
.
reset
();
return
;
}
g_ios
.
run
();
try
{
g_ios
.
run
();
}
catch
(
const
std
::
exception
&
e
)
{
debug
(
"Exception thrown from ouinet"
);
debug
(
"%s"
,
e
.
what
());
}
debug
(
"Ouinet's main loop stopped."
);
g_client
.
reset
();
});
...
...
Write
Preview
Supports
Markdown
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