Skip to content
Permalink
Browse files

fix: correctly cleanup reset listener

  • Loading branch information
gr2m committed Jul 30, 2017
1 parent 4cd0b26 commit 58801d8c429c5f58f5d517f8f9392fdb14f813d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/helpers/db-put.js
@@ -45,7 +45,7 @@ function changeHandler (state, scope, _notUsedEventName, doc) {

if (doc._rev === scope.wantedRev) {
state.emitter.removeListener('change', scope.changeHandler)
state.emitter.once('reset', scope.resetHandler)
state.emitter.removeListener('reset', scope.resetHandler)
scope.resolve(scope.result)
}
}

0 comments on commit 58801d8

Please sign in to comment.
You can’t perform that action at this time.