Change execSync/spawnSync to async (#4123)

* WIP

* Add missing await

* Update package-lock.json
This commit is contained in:
Louis Lam 2023-11-30 16:12:04 +08:00 committed by GitHub
parent 73239d441d
commit 1708b67949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 16 deletions

View file

@ -1223,9 +1223,9 @@ let needSetup = false;
// Update nscd status
if (previousNSCDStatus !== data.nscd) {
if (data.nscd) {
server.startNSCDServices();
await server.startNSCDServices();
} else {
server.stopNSCDServices();
await server.stopNSCDServices();
}
}