std: call WinSock cleanup function directly instead of through its reexport
This commit is contained in:
parent
a2db928053
commit
d615d2ff34
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue