From a544163dd912765ddc226497574886c14375299e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 28 Mar 2025 19:31:09 +0100 Subject: [PATCH] wip --- ntex-net/src/rt_polling/driver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntex-net/src/rt_polling/driver.rs b/ntex-net/src/rt_polling/driver.rs index b85cfcdd..040eb060 100644 --- a/ntex-net/src/rt_polling/driver.rs +++ b/ntex-net/src/rt_polling/driver.rs @@ -115,8 +115,8 @@ impl Handler for StreamOpsHandler { // handle HUP if ev.is_interrupt() { - item.context.stopped(None); if item.io.take().is_some() { + item.context.stopped(None); close(id as u32, item, &self.inner.api, true); } return; @@ -200,8 +200,8 @@ impl Handler for StreamOpsHandler { err ); item.flags.insert(Flags::ERROR); - item.context.stopped(Some(err)); if item.io.take().is_some() { + item.context.stopped(Some(err)); close(id as u32, item, &self.inner.api, true); } }