htc: fixes for WriteFileLarge/sending over data channel

This commit is contained in:
Michael Scire
2021-02-16 17:15:57 -08:00
committed by SciresM
parent 7621bd4e13
commit f0ef9fb918
3 changed files with 10 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ namespace ams::htclow::mux {
/* Determine the sendable size. */
const auto offset = total_send_size - ring_buffer_data_size;
const auto sendable_size = std::min(share - offset, ring_buffer_data_size);
const auto sendable_size = m_flow_control_enabled ? std::min(share - offset, ring_buffer_data_size) : ring_buffer_data_size;
if (sendable_size == 0) {
return false;
}