ignore tx.send() result

Former-commit-id: 2d4b2d258f8fd3b030bb7f1e9596ccb6750d50ff
This commit is contained in:
Imbris 2019-04-14 20:23:26 -04:00
parent 3812e0b58f
commit b7439b9107

View File

@ -46,7 +46,7 @@ impl ClientInit {
for socket_addr in first_addrs.into_iter().chain(second_addrs) {
match Client::new(socket_addr, player.clone(), character, view_distance) {
Ok(client) => {
tx.send(Ok(client));
let _ = tx.send(Ok(client));
return;
}
Err(err) => {
@ -65,11 +65,11 @@ impl ClientInit {
}
}
// Parsing/host name resolution successful but no connection succeeded
tx.send(Err(last_err.unwrap_or(Error::NoAddress)));
let _ = tx.send(Err(last_err.unwrap_or(Error::NoAddress)));
}
Err(err) => {
// Error parsing input string or error resolving host name
tx.send(Err(Error::BadAddress(err)));
let _ = tx.send(Err(Error::BadAddress(err)));
}
}
}));