from ended to end

This commit is contained in:
Ricky Ng-Adam 2014-04-18 23:30:45 +08:00
parent 9ab6ed76d1
commit 0882c8da02
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ PG.prototype.end = function() {
pool.destroyAllNow(function() {
count--;
if(count === 0) {
self.emit('ended');
self.emit('end');
}
});
});

View File

@ -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();
});