Commit 8892539e authored by AdamSimpson's avatar AdamSimpson
Browse files

Simplify logic a bit more in reading from pipe

parent d050f836
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -60,10 +60,10 @@ int main(int argc, char *argv[]) {
        callback_type read_std_pipe = [&](const boost::system::error_code& ec, std::size_t size) {
            client_messenger.send(buffer);

            if(size > 0 && !ec) {
            if(size > 0) {
                asio::async_read_until(std_pipe, buffer, line_matcher, read_std_pipe);
            }
            else if(size == 0 && ec == asio::error::eof) {
            else if(ec == asio::error::eof) {
                logger::write("build output EOF");
            }
            else {