fix: break loop when core terminated

This commit is contained in:
GyDi 2022-10-14 14:46:15 +08:00
parent f062f7f9fe
commit 515af472ce
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -172,6 +172,8 @@ impl Service {
log::error!(target: "app" ,"[clash error]: {}", err);
write_log(err);
}
CommandEvent::Error(err) => log::error!(target: "app" ,"{err}"),
CommandEvent::Terminated(_) => break,
_ => {}
}
}