exit if disconnected

This commit is contained in:
c0repwn3r 2023-07-24 18:50:58 -04:00
parent 52bc824027
commit 431baae8c4
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
e = rx.recv() => {
if let Some(e) = e {
handle_packet(e, &config, &mut client, &mut ws_stream).await?
} else {
std::process::exit(1);
}
}
}