From 431baae8c4a6c7c91ba969fad9bb00533fad80fd Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Mon, 24 Jul 2023 18:50:58 -0400 Subject: [PATCH] exit if disconnected --- azalea-worker/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azalea-worker/src/main.rs b/azalea-worker/src/main.rs index 3ebce32..97bf092 100644 --- a/azalea-worker/src/main.rs +++ b/azalea-worker/src/main.rs @@ -165,6 +165,8 @@ async fn main() -> Result<(), Box> { e = rx.recv() => { if let Some(e) = e { handle_packet(e, &config, &mut client, &mut ws_stream).await? + } else { + std::process::exit(1); } } }