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

Commit 9abe9c9e authored by Andreas Areskoug's avatar Andreas Areskoug Committed by christian bejram
Browse files

Handle OBEX Abort packets sent from remote device



This patch adds support for handling OBEX Abort packets
sent from remote device, where the remote device is acting
as a client, sending files to the server.

Depends-On: I0fc2255c463c5ce1e8fa1d7febf144b60965a1be

Change-Id: I4bce05a9007ba02e9d9987ec3cbbf1db380247f0
Signed-off-by: default avatarchristian bejram <christian.bejram@stericsson.com>
parent a2407587
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;
            }
        }