std: call WinSock cleanup function directly instead of through its reexport

This commit is contained in:
joboet 2025-09-30 11:59:08 +02:00
parent a2db928053
commit d615d2ff34
No known key found for this signature in database
GPG key ID: 704E0149B0194B3C
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ pub(super) mod netc {
}
}
pub use crate::sys::pal::winsock::{cleanup, cvt, cvt_gai, cvt_r, startup as init};
pub use crate::sys::pal::winsock::{cvt, cvt_gai, cvt_r, startup as init};
#[expect(missing_debug_implementations)]
pub struct Socket(OwnedSocket);

View file

@ -58,7 +58,7 @@ pub unsafe fn init(_argc: isize, _argv: *const *const u8, _sigpipe: u8) {
// SAFETY: must be called only once during runtime cleanup.
// NOTE: this is not guaranteed to run, for example when the program aborts.
pub unsafe fn cleanup() {
crate::sys::net::cleanup();
winsock::cleanup();
}
#[inline]