ldap: server.close has a callback after all
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user