asio: Remove eof check in asio-cl.cc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-07 03:10:37 +09:00
parent 45164b6761
commit 66f5438dc9
1 changed files with 0 additions and 4 deletions

View File

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