fix(core): release legacy lock file after check
This commit is contained in:
parent
00b4f97b14
commit
87581c5b35
|
@ -65,6 +65,7 @@ fn daemon_main(args: CliModuleArgs) -> i32 {
|
||||||
error!("an instance of legacy espanso is running, please terminate it, otherwise the new version cannot start");
|
error!("an instance of legacy espanso is running, please terminate it, otherwise the new version cannot start");
|
||||||
return DAEMON_LEGACY_ALREADY_RUNNING;
|
return DAEMON_LEGACY_ALREADY_RUNNING;
|
||||||
}
|
}
|
||||||
|
drop(legacy_lock_file);
|
||||||
|
|
||||||
// TODO: we might need to check preconditions: accessibility on macOS, presence of binaries on Linux, etc
|
// TODO: we might need to check preconditions: accessibility on macOS, presence of binaries on Linux, etc
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,7 @@ fn worker_main(args: CliModuleArgs) -> i32 {
|
||||||
error!("an instance of legacy espanso is running, please terminate it, otherwise the new version cannot start");
|
error!("an instance of legacy espanso is running, please terminate it, otherwise the new version cannot start");
|
||||||
return WORKER_LEGACY_ALREADY_RUNNING;
|
return WORKER_LEGACY_ALREADY_RUNNING;
|
||||||
}
|
}
|
||||||
|
drop(legacy_lock_file);
|
||||||
|
|
||||||
let config_store = args
|
let config_store = args
|
||||||
.config_store
|
.config_store
|
||||||
|
|
Loading…
Reference in New Issue
Block a user