Skip to content

Commit

Permalink
from ended to end
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Ng-Adam committed Apr 18, 2014
1 parent 9ab6ed7 commit 0882c8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -28,7 +28,7 @@ PG.prototype.end = function() {
pool.destroyAllNow(function() {
count--;
if(count === 0) {
self.emit('ended');
self.emit('end');
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/integration/connection-pool/ending-pool-tests.js
Expand Up @@ -5,7 +5,7 @@ test('disconnects', function() {
var sink = new helper.Sink(4, function() {
called = true;
var eventSink = new helper.Sink(1, function() {});
helper.pg.on('ended', function() {
helper.pg.on('end', function() {
eventSink.add();
});

Expand Down

0 comments on commit 0882c8d

Please sign in to comment.