exit on all errors, not just SocketNotFound
This commit is contained in:
parent
a74592ef4c
commit
90ed49b865
|
@ -42,7 +42,9 @@ async fn main() -> Res<()> {
|
|||
let mut recent_code = None;
|
||||
|
||||
while let Some(event) = events.next().await {
|
||||
if let Err(swayipc_async::Error::SocketNotFound) = event {
|
||||
if let Err(e) = event.as_ref() {
|
||||
log::error!("error getting next event: {e:?}");
|
||||
log::error!("exiting...");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue