This commit is contained in:
Nikolay Kim 2025-03-28 19:34:20 +01:00
parent a544163dd9
commit dfeefd0afd

View file

@ -234,7 +234,7 @@ fn close<T>(
api.detach(fd, id);
Some(ntex_rt::spawn_blocking(move || {
if !error {
syscall!(libc::shutdown(fd, libc::SHUT_RDWR))?;
syscall!(libc::shutdown(fd, libc::SHUT_RDWR));
}
syscall!(libc::close(fd))
}))