Loading obex/javax/obex/ServerOperation.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -195,7 +195,12 @@ public final class ServerOperation implements Operation, BaseStream { if(!handleObexPacket(packet)) { if(!handleObexPacket(packet)) { return; return; } } if (!mHasBody) { /* Don't Pre-Send continue when Remote requested for SRM * Let the Application confirm. */ if (V) Log.v(TAG, "Get App confirmation if SRM ENABLED case: " + mSrmEnabled + " not hasBody case: " + mHasBody); if (!mHasBody && !mSrmEnabled) { while ((!mGetOperation) && (!finalBitSet)) { while ((!mGetOperation) && (!finalBitSet)) { sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); if (mPrivateInput.available() > 0) { if (mPrivateInput.available() > 0) { Loading @@ -204,8 +209,13 @@ public final class ServerOperation implements Operation, BaseStream { } } } } } } /* Don't Pre-Send continue when Remote requested for SRM while ((!mGetOperation) && (!finalBitSet) && (mPrivateInput.available() == 0)) { * Let the Application confirm. */ if (V) Log.v(TAG, "Get App confirmation if SRM ENABLED case: " + mSrmEnabled + " not finalPacket: " + finalBitSet + " not GETOp Case: " + mGetOperation); while ((!mSrmEnabled) && (!mGetOperation) && (!finalBitSet) && (mPrivateInput.available() == 0)) { sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); if (mPrivateInput.available() > 0) { if (mPrivateInput.available() > 0) { break; break; Loading Loading
obex/javax/obex/ServerOperation.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -195,7 +195,12 @@ public final class ServerOperation implements Operation, BaseStream { if(!handleObexPacket(packet)) { if(!handleObexPacket(packet)) { return; return; } } if (!mHasBody) { /* Don't Pre-Send continue when Remote requested for SRM * Let the Application confirm. */ if (V) Log.v(TAG, "Get App confirmation if SRM ENABLED case: " + mSrmEnabled + " not hasBody case: " + mHasBody); if (!mHasBody && !mSrmEnabled) { while ((!mGetOperation) && (!finalBitSet)) { while ((!mGetOperation) && (!finalBitSet)) { sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); if (mPrivateInput.available() > 0) { if (mPrivateInput.available() > 0) { Loading @@ -204,8 +209,13 @@ public final class ServerOperation implements Operation, BaseStream { } } } } } } /* Don't Pre-Send continue when Remote requested for SRM while ((!mGetOperation) && (!finalBitSet) && (mPrivateInput.available() == 0)) { * Let the Application confirm. */ if (V) Log.v(TAG, "Get App confirmation if SRM ENABLED case: " + mSrmEnabled + " not finalPacket: " + finalBitSet + " not GETOp Case: " + mGetOperation); while ((!mSrmEnabled) && (!mGetOperation) && (!finalBitSet) && (mPrivateInput.available() == 0)) { sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); if (mPrivateInput.available() > 0) { if (mPrivateInput.available() > 0) { break; break; Loading