Remove lobby debug code

This commit is contained in:
timvisee
2021-11-15 20:22:34 +01:00
parent ffc4f00430
commit d213612225
3 changed files with 3 additions and 9 deletions

View File

@@ -29,9 +29,6 @@ use crate::proto::{self, Client, ClientInfo, ClientState, RawPacket};
use crate::proxy;
use crate::server::{Server, State};
// TODO: remove this before releasing feature
pub const DONT_START_SERVER: bool = false;
/// Interval to send keep-alive packets at.
const KEEP_ALIVE_INTERVAL: Duration = Duration::from_secs(10);

View File

@@ -79,8 +79,7 @@ pub mod packets {
/// Client state.
///
/// Note: this does not keep track of compression/encryption states because packets are never
/// inspected when these modes are enabled.
/// Note: this does not keep track of encryption states.
#[derive(Debug)]
pub struct Client {
/// Current client state.

View File

@@ -135,10 +135,8 @@ pub async fn serve(
break;
}
if !lobby::DONT_START_SERVER {
// Start server if not starting yet
Server::start(config.clone(), server.clone(), username).await;
}
// Start server if not starting yet
Server::start(config.clone(), server.clone(), username).await;
// Use join occupy methods
for method in &config.join.methods {