We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382d6d6 commit 85c28e9Copy full SHA for 85c28e9
lib/index.js
@@ -25,11 +25,12 @@ PG.prototype.end = function() {
25
var pool = self.pools.all[key];
26
delete self.pools.all[key];
27
pool.drain(function() {
28
- pool.destroyAllNow();
29
- count--;
30
- if(count === 0) {
31
- self.emit('ended');
32
- }
+ pool.destroyAllNow(function() {
+ count--;
+ if(count === 0) {
+ self.emit('ended');
+ }
33
+ });
34
});
35
36
};
0 commit comments