mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
actually removed printlns
This commit is contained in:
parent
35a3f67e19
commit
66e254db7f
@ -140,17 +140,12 @@ impl Client {
|
||||
/*loop {
|
||||
match self.postbox.next_message() {
|
||||
Some(ServerMsg::StateAnswer(Err((RequestStateError::Denied, _)))) => {
|
||||
println!("Got a bad");
|
||||
break Err(Error::InvalidAuth)
|
||||
},
|
||||
Some(ServerMsg::StateAnswer(Ok(ClientState::Registered))) => {
|
||||
println!("Got a good");
|
||||
break Ok(())
|
||||
}
|
||||
Some(x) => {
|
||||
println!("Got unusual message: {:?}", x);
|
||||
}
|
||||
None => { println!("Got nothing?"); },
|
||||
_ => {}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
@ -62,14 +62,10 @@ impl ClientInit {
|
||||
for socket_addr in first_addrs.into_iter().chain(second_addrs) {
|
||||
match Client::new(socket_addr, player.view_distance) {
|
||||
Ok(mut client) => {
|
||||
/*match client.register(player, password) {
|
||||
Err(ClientError::InvalidAuth) => {
|
||||
last_err = Some(Error::InvalidAuth);
|
||||
break;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
println!("Auth success");*/
|
||||
/*if let Err(ClientError::InvalidAuth) == client.register(player, password) {
|
||||
last_err = Some(Error::InvalidAuth);
|
||||
break;
|
||||
}*/
|
||||
client.register(player, password);
|
||||
let _ = tx.send(Ok(client));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user