From 68e20d1d1d8043a2d5256dc84283d27dee140637 Mon Sep 17 00:00:00 2001 From: Valentin Palade Date: Sun, 2 Feb 2025 15:00:22 +0200 Subject: [PATCH] small fix on aiostream --- solid/frame/aio/aiostream.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solid/frame/aio/aiostream.hpp b/solid/frame/aio/aiostream.hpp index d33c8651..e333cbe4 100644 --- a/solid/frame/aio/aiostream.hpp +++ b/solid/frame/aio/aiostream.hpp @@ -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)}; _rthis.doClearRecv(_rctx); @@ -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)}; _rthis.doClearSend(_rctx);