asio: Remove eof check in asio-cl.cc
This commit is contained in:
parent
45164b6761
commit
66f5438dc9
|
@ -75,10 +75,6 @@ int main(int argc, char *argv[]) {
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
|
||||||
res.on_data([&sess](const uint8_t *data, std::size_t len) {
|
res.on_data([&sess](const uint8_t *data, std::size_t len) {
|
||||||
if (len == 0) {
|
|
||||||
// eof
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
std::cerr.write(reinterpret_cast<const char *>(data), len);
|
std::cerr.write(reinterpret_cast<const char *>(data), len);
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue