mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Merge pull request #395 from aaronyo/master
Unable to reconnect after calling pg.end()
This commit is contained in:
commit
be37756607
@ -22,6 +22,7 @@ PG.prototype.end = function() {
|
||||
var self = this;
|
||||
Object.keys(self.pools.all).forEach(function(key) {
|
||||
var pool = self.pools.all[key];
|
||||
delete self.pools.all[key];
|
||||
pool.drain(function() {
|
||||
pool.destroyAllNow();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user