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

Commit 6a4fee36 authored by Juffin Alex Varghese's avatar Juffin Alex Varghese
Browse files

Bluetooth-OPP: Cleanup OPP transfer session after Tx abort

The change will ensure that when user cancelled the tranfer while
ongoing Rx, the transfer session will be cleaned up properly.
Otherwise, while Tx + Rx concurrency if user abort the Tx and
start Tx again new tranfer session will be created only after Rx
is finished.

CRs-Fixed: 585962
Change-Id: I9b5e1c0f1748ccc47811d669ddab96ba43f424f5
parent decfe737
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -899,6 +899,11 @@ public class BluetoothOppService extends Service {
                if (V) Log.v(TAG, "Service cancel batch for share " + info.mId);
                batch.cancelBatch();
            }
            if (mTransfer != null) {
                if (V) Log.v(TAG, "Stop transfer session");
                mTransfer.stop();
                mTransfer = null;
            }
            if (batch.isEmpty()) {
                if (V) Log.v(TAG, "Service remove batch  " + batch.mId);
                removeBatch(batch);
+5 −5

File changed.

Contains only whitespace changes.