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

Commit 37af9d8c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not leak Future when CompanionTransportManager.sendMessage() thows"

parents 3024efa8 d5913833
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -200,6 +200,9 @@ public class CompanionTransportManager {
            try {
                sendMessage(message, sequence, data);
            } catch (IOException e) {
                synchronized (mPendingRequests) {
                    mPendingRequests.remove(sequence);
                }
                pending.completeExceptionally(e);
            }
            return pending;