input/thread: use pass std::span<std::byte> to ThreadRead()

This commit is contained in:
Max Kellermann
2024-07-29 22:31:11 +02:00
parent dbaa72cb40
commit 2e78bd430c
3 changed files with 8 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ ThreadInputStream::ThreadFunc() noexcept
try {
const ScopeUnlock unlock(mutex);
nbytes = ThreadRead(w.data(), w.size());
nbytes = ThreadRead(w);
} catch (...) {
postponed_exception = std::current_exception();
InvokeOnAvailable();