Skip to content

Commit

Permalink
small fix on aiostream
Browse files Browse the repository at this point in the history
  • Loading branch information
vipalade committed Feb 2, 2025
1 parent 5f845f9 commit 68e20d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solid/frame/aio/aiostream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Stream : public CompletionHandler {

void operator()(ThisT& _rthis, ReactorContext& _rctx)
{
if (_rctx.systemError() || _rthis.doTryRecv(_rctx)) {
if (_rctx.error() || _rthis.doTryRecv(_rctx)) {
const size_t recv_sz = _rthis.recv_buf_sz;
F tmp{std::forward<F>(f)};
_rthis.doClearRecv(_rctx);
Expand All @@ -123,7 +123,7 @@ class Stream : public CompletionHandler {

void operator()(ThisT& _rthis, ReactorContext& _rctx)
{
while (_rctx.systemError() || _rthis.doTrySend(_rctx)) {
while (_rctx.error() || _rthis.doTrySend(_rctx)) {
if (_rthis.send_buf_sz == _rthis.send_buf_cp) {
F tmp{std::forward<F>(f)};
_rthis.doClearSend(_rctx);
Expand Down

0 comments on commit 68e20d1

Please sign in to comment.