Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccc6f06b authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Unbind on all failures.

Existing implementation leaks connections. We need to unbind on failures.

Bug: 293123800
Fixes: 293123800
Test: presubmit
Change-Id: I23d5e990230f6041a5464e89ded694f3df9161d3
parent f131d8be
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -280,6 +280,11 @@ final class InstantAppResolverConnection implements DeathRecipient {
            } catch (NoSuchElementException ignore) { }
        }
        mRemoteInstance = null;

        try {
            mContext.unbindService(mServiceConnection);
        } catch (Exception ignored) {
        }
    }

    /**