Fix syntax

This commit is contained in:
Oxan van Leeuwen
2020-03-31 19:50:18 +02:00
parent f09fac09de
commit 1f645d13d6

View File

@@ -37,7 +37,8 @@ void StreamServerComponent::cleanup() {
}
void StreamServerComponent::read() {
while ((int len = this->stream_->available()) > 0) {
int len;
while ((len = this->stream_->available()) > 0) {
char buf[128];
size_t read = this->stream_->readBytes(buf, min(len, 128));
for (auto const& client : this->clients_)