diff --git a/persistence.js b/persistence.js index 1b7ecea..fe220b6 100644 --- a/persistence.js +++ b/persistence.js @@ -65,7 +65,7 @@ MongoPersistence.prototype._setup = function () { this._connect(function (err, client) { if (err) { - this.emit('error', err) + that.emit('error', err) return }