threadshare: fix build on Windows

This commit is contained in:
Tim-Philipp Müller 2022-04-27 00:13:46 +01:00
parent 5aa1b7cd3b
commit 90c203857a

View file

@ -179,7 +179,7 @@ impl<T: AsRawSocket> Async<T> {
}
}
let source = Reactor::with_mut(|reactor| reactor.insert_io(fd))?;
let source = Reactor::with_mut(|reactor| reactor.insert_io(sock))?;
Ok(Async {
source,
io: Some(io),