mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 03:32:10 +08:00
refactor(signal): migrate signal to handling async in windows and remove windows_sys dependency (#5741)
* refactor(signal): migrate signal to handling async in windows and remove signal-hook dependency * refactor(signal): enhance Windows signal handling with improved cleanup logic * refactor(signal): improve exit handling in run function for async compatibility
This commit is contained in:
@@ -143,11 +143,7 @@ pub(super) async fn init_auto_backup() {
|
||||
|
||||
pub fn init_signal() {
|
||||
logging!(info, Type::Setup, "Initializing signal handlers...");
|
||||
clash_verge_signal::register(
|
||||
#[cfg(windows)]
|
||||
handle::Handle::app_handle(),
|
||||
feat::quit,
|
||||
);
|
||||
clash_verge_signal::register(feat::quit);
|
||||
}
|
||||
|
||||
pub async fn init_work_config() {
|
||||
|
||||
Reference in New Issue
Block a user