Remove lobby debug code
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user