Add missing unbind
All checks were successful
CI / Test and lint (push) Successful in 24s

This commit is contained in:
Râu Cao 2025-05-21 16:34:12 +04:00
parent 994053e080
commit 91eff4ad07
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -49,6 +49,8 @@ export async function lookupUsernameByPubkey(pubkey: string): Promise<string | u
if (searchEntries.length > 0) {
username = searchEntries[0].cn.toString();
}
await client.unbind();
} catch (e) {
await client.unbind();
throw e;