Skip to content

Commit 0882c8d

Browse files
author
Ricky Ng-Adam
committed
from ended to end
1 parent 9ab6ed7 commit 0882c8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PG.prototype.end = function() {
2828
pool.destroyAllNow(function() {
2929
count--;
3030
if(count === 0) {
31-
self.emit('ended');
31+
self.emit('end');
3232
}
3333
});
3434
});

test/integration/connection-pool/ending-pool-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test('disconnects', function() {
55
var sink = new helper.Sink(4, function() {
66
called = true;
77
var eventSink = new helper.Sink(1, function() {});
8-
helper.pg.on('ended', function() {
8+
helper.pg.on('end', function() {
99
eventSink.add();
1010
});
1111

0 commit comments

Comments
 (0)