mirror of https://github.com/louislam/uptime-kuma
Close the client postgresql connection after rejection. (#4084)
Co-authored-by: Manuel Vázquez Acosta <manuel@merchise.org>pull/4088/head
parent
bf58838b89
commit
8e61158758
|
@ -458,6 +458,7 @@ exports.postgresQuery = function (connectionString, query) {
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
reject(e);
|
reject(e);
|
||||||
|
client.end();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue