diff --git a/src/bot.rs b/src/bot.rs index 8b1ee20..21a71ac 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -196,7 +196,7 @@ async fn handle_packet(e: Event, config: &Arc>, reciever: &Receiv match p.as_ref() { ClientboundGamePacket::Disconnect(_) => { info!("Disconnected, restarting"); - return Ok(()); + return Err("Disconnected".into()); } _ => () }