fix(client): fix panic when addrs in ConnectingTcpRemote is empty (#2292)
Closes #2291
This commit is contained in:
@@ -541,7 +541,13 @@ impl ConnectingTcpRemote {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(err.take().expect("missing connect error"))
|
match err {
|
||||||
|
Some(e) => Err(e),
|
||||||
|
None => Err(std::io::Error::new(
|
||||||
|
std::io::ErrorKind::NotConnected,
|
||||||
|
"Network unreachable",
|
||||||
|
)),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user