Fixed crash

This commit is contained in:
emeric
2020-12-12 15:18:53 +01:00
parent 6c15eafee1
commit fd11908a84
+5 -4
View File
@@ -142,15 +142,16 @@ ChildProcess::asyncRead(std::byte* data, std::size_t bufferSize, ReadCallback ca
if (error)
{
if (error == boost::asio::error::operation_aborted)
{
return;
}
{
boost::system::error_code closeError;
_childStdout.close(closeError);
}
if (error == boost::asio::error::operation_aborted)
{
return;
}
if (error == boost::asio::error::eof)
{
callback(ReadResult::EndOfFile, bytesTransferred);