We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3204c8 commit cce42eeCopy full SHA for cce42ee
mtp/ptp/Session.cpp
@@ -314,8 +314,12 @@ namespace mtp
314
{
315
DataRequest req(OperationCode::SendObject, transaction.Id);
316
Container container(req, inputStream);
317
- _packeter.Write(std::make_shared<ByteArrayObjectInputStream>(container.Data), timeout);
318
- _packeter.Write(inputStream, timeout);
+ if (_separateBulkWrites)
+ {
319
+ _packeter.Write(std::make_shared<ByteArrayObjectInputStream>(container.Data), timeout);
320
+ _packeter.Write(inputStream, timeout);
321
+ } else
322
+ _packeter.Write(std::make_shared<JoinedObjectInputStream>(std::make_shared<ByteArrayObjectInputStream>(container.Data), inputStream), timeout);
323
}
324
ByteArray response;
325
Get(transaction.Id, response);
0 commit comments