fix(core): release legacy lock file after check

This commit is contained in:
Federico Terzi 2021-06-02 12:49:59 +02:00
parent 00b4f97b14
commit 87581c5b35
2 changed files with 2 additions and 0 deletions

View File

@ -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");
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

View File

@ -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");
return WORKER_LEGACY_ALREADY_RUNNING;
}
drop(legacy_lock_file);
let config_store = args
.config_store