mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: box incoming connections on windows (#2805)
This commit is contained in:
@ -119,7 +119,11 @@ impl IpcServer {
|
||||
|
||||
let mut connections = FutureDriver::default();
|
||||
let incoming = match self.endpoint.incoming() {
|
||||
Ok(connections) => Incoming::new(connections),
|
||||
Ok(connections) => {
|
||||
#[cfg(windows)]
|
||||
let connections = Box::pin(connections);
|
||||
Incoming::new(connections)
|
||||
}
|
||||
Err(err) => {
|
||||
on_ready.send(Err(err.to_string())).ok();
|
||||
return Err(err)
|
||||
|
||||
Reference in New Issue
Block a user