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

Commit 14d86ff4 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android Code Review
Browse files

Merge "Handle OBEX Abort packets sent from remote device"

parents 320496af 00c1baa8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -473,7 +473,12 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen
                }
            } catch (IOException e1) {
                Log.e(TAG, "Error when receiving file");
                /* OBEX Abort packet received from remote device */
                if ("Abort Received".equals(e1.getMessage())) {
                    status = BluetoothShare.STATUS_CANCELED;
                } else {
                    status = BluetoothShare.STATUS_OBEX_DATA_ERROR;
                }
                error = true;
            }
        }