threadshare: fix build on Windows

This commit is contained in:
Tim-Philipp Müller 2022-04-27 00:13:46 +01:00 committed by Sebastian Dröge
parent 18c9bd0355
commit 79ed10ba27

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),