mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
wip
This commit is contained in:
parent
f04c48e28d
commit
a544163dd9
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ impl<T> Handler for StreamOpsHandler<T> {
|
|||
|
||||
// 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<T> Handler for StreamOpsHandler<T> {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue