Merge "fastboot: Fix hang when sparse images end in small chunks."

am: d0d7d0a6b9

Change-Id: Ia98cc2ed8f09ad99aa8d00ba7edb16553827556c
This commit is contained in:
David Anderson 2018-07-30 16:50:32 -07:00 committed by android-build-merger
commit 64465fde9f

View file

@ -462,6 +462,10 @@ RetCode FastBootDriver::SendBuffer(const std::vector<char>& buf) {
}
RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) {
if (!size) {
return SUCCESS;
}
// Write the buffer
ssize_t tmp = transport->Write(buf, size);