diff --git a/client/src/lib.rs b/client/src/lib.rs index f67b881..b5e05a6 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -37,14 +37,11 @@ pub extern "stdcall" fn DllMain(instance: HMODULE, reason: u32, _reserved: u32) DisableThreadLibraryCalls(instance); } - CombinedLogger::init(vec![ - TermLogger::new(LevelFilter::Trace, Config::default(), TerminalMode::Mixed), - WriteLogger::new( - LevelFilter::Trace, - Config::default(), - File::create("cef_client.log").unwrap(), - ), - ]) + CombinedLogger::init(vec![WriteLogger::new( + LevelFilter::Trace, + Config::default(), + File::create("cef_client.log").unwrap(), + )]) .unwrap(); render::preinitialize(); diff --git a/server/src/server.rs b/server/src/server.rs index 66a076c..a184bfd 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -150,7 +150,6 @@ impl Server { /// выпинываем игрока из списка клиентов fn handle_timeout(&mut self, addr: SocketAddr) { - self.allowed.remove(&addr.ip()); self.clients.remove(&addr); }