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

This commit is contained in:
Treehugger Robot 2018-07-30 23:40:36 +00:00 committed by Gerrit Code Review
commit d0d7d0a6b9

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);