fix(Postgres Node): Close connection pool only if it's not already closed or closing (#8690)
This commit is contained in:
committed by
GitHub
parent
890c2bd52b
commit
457cac4cf9
@@ -31,7 +31,7 @@ export async function getColumns(this: ILoadOptionsFunctions): Promise<INodeProp
|
||||
if (sshClient) {
|
||||
sshClient.end();
|
||||
}
|
||||
await db.$pool.end();
|
||||
if (!db.$pool.ending) await db.$pool.end();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user