ldap: server.close has a callback after all

This commit is contained in:
Girish Ramakrishnan
2024-01-23 10:37:59 +01:00
parent 81e21effa4
commit d2c21627de
4 changed files with 7 additions and 6 deletions
+5 -3
View File
@@ -197,9 +197,11 @@ class LdapServer {
}
stop(callback) {
if (this.#ldapServer) this.#ldapServer.close();
this.#ldapServer = null;
callback();
if (this.#ldapServer) {
this.#ldapServer.close(callback);
} else {
callback();
}
}
}