Skip to content

Commit

Permalink
Add missing handler call
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed May 1, 2024
1 parent 3ef03c9 commit ac397a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VirtualSerialPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void VirtualSerialPort::async_read(boost::asio::mutable_buffer buffer, std::func
bytes_read = read(master_fd_.native_handle(), buffer.data(), sizeof(buffer_) - 1);
if (bytes_read == -1) {
std::cerr << "Error reading from PTY: " << strerror(errno) << std::endl;
return;
handler(boost::system::error_code(), -1);
}

buffer_[bytes_read] = '\0'; // Null-terminate string
Expand Down

0 comments on commit ac397a6

Please sign in to comment.