Handle bug that happens when a player leaves the game in an early stage
This commit is contained in:
@ -132,6 +132,7 @@ async fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> Res {
|
||||
#[tokio::main]
|
||||
pub async fn main() -> Result<(), Box<dyn Error>> {
|
||||
env_logger::Builder::from_env(Env::default()).init();
|
||||
cli_args(); // Avoid a crash if help argument is triggered
|
||||
|
||||
// setup terminal
|
||||
enable_raw_mode()?;
|
||||
|
Reference in New Issue
Block a user