Skip to content

Commit

Permalink
fix: use once listener
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausTrainer committed Oct 19, 2016
1 parent d652675 commit e46e351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function DynamoDBIterator (db, options) {
this.db = db
this.dynamoDb = db.dynamoDb
this._results = this.createReadStream(options)
this._results.on('end', () => {
this._results.once('end', () => {
this._endEmitted = true
})
}
Expand Down

0 comments on commit e46e351

Please sign in to comment.