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

Commit dbcef5e1 authored by Pradeep Panigrahi's avatar Pradeep Panigrahi Committed by Android Git Automerger
Browse files

am 9c9396f8: Mark proper file transfer status upon OBEX response timeout

* commit '9c9396f8':
  Mark proper file transfer status upon OBEX response timeout
parents aa236e6c 9c9396f8
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -535,6 +535,13 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                    }
                    }
                } catch (IOException e) {
                } catch (IOException e) {
                    Log.e(TAG, "Error when closing stream after send");
                    Log.e(TAG, "Error when closing stream after send");

                    // Socket has been closed due to the response timeout in the framework,
                    // mark the transfer as failure.
                    if (position != fileInfo.mLength) {
                       status = BluetoothShare.STATUS_FORBIDDEN;
                       Constants.updateShareStatus(mContext1, mInfo.mId, status);
                    }
                }
                }
            }
            }
            return status;
            return status;