exit if disconnected
This commit is contained in:
parent
52bc824027
commit
431baae8c4
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue