lan_discovery_WOL: fix udp set_nonblocking twice and lan refactor

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-07-15 20:39:42 +08:00
parent 13406cd359
commit 3613f27afc
5 changed files with 298 additions and 279 deletions

View File

@@ -548,7 +548,7 @@ impl UI {
}
fn send_wol(&mut self, id: String) {
crate::rendezvous_mediator::send_wol(id)
crate::lan::send_wol(id)
}
fn new_remote(&mut self, id: String, remote_type: String) {
@@ -695,7 +695,7 @@ impl UI {
fn discover(&self) {
std::thread::spawn(move || {
allow_err!(crate::rendezvous_mediator::discover());
allow_err!(crate::lan::discover());
});
}