change to modify socket with notifier.

This commit is contained in:
Jagadesh Adireddi 2020-05-12 18:58:01 +05:30
parent 2071f2a481
commit 19a1a11583
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ fn notifier() -> io::Result<(Notifier, Notifier)> {
/// Creates a pair of connected sockets.
#[cfg(windows)]
fn notifier() -> io::Result<(Socket, Socket)> {
fn notifier() -> io::Result<(Notifier, Notifier)> {
// Create a temporary listener.
let listener = Socket::new(Domain::ipv4(), Type::stream(), None)?;
listener.bind(&SocketAddr::from(([127, 0, 0, 1], 0)).into())?;