fix(android): handle exceptions when creating a new session (#10667)

The `Session.newAndroid` constructor can throw an exception.
Unfortunately, the Kotlin compiler didn't warn us about that and thus,
any errors when creating a new session caused the service process to
crash.

We fix this by wrapping the entire thing in a `try-catch-finally` block.

Resolves: #10289
This commit is contained in:
Thomas Eizinger
2025-10-22 08:01:41 +11:00
committed by GitHub
parent dee535f30e
commit 66fcf8734c
2 changed files with 40 additions and 28 deletions

View File

@@ -20,7 +20,12 @@ export default function Android() {
return (
<Entries downloadLinks={downloadLinks} title="Android">
{/* When you cut a release, remove any solved issues from the "known issues" lists over in `client-apps`. This must not be done when the issue's PR merges. */}
<Unreleased></Unreleased>
<Unreleased>
<ChangeItem pull="10667">
Fixes an issue where the Tunnel service would crash when trying to
connect Firezone without an Internet connection.
</ChangeItem>
</Unreleased>
<Entry version="1.5.5" date={new Date("2025-10-18")}>
<ChangeItem pull="10509">
Fixes an issue where the Internet Resource could be briefly active on