summaryrefslogtreecommitdiff
path: root/lib/during.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/during.js')
-rw-r--r--lib/during.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/during.js b/lib/during.js
index cda9979..02da045 100644
--- a/lib/during.js
+++ b/lib/during.js
@@ -45,11 +45,13 @@ export default function during(test, fn, callback) {
function next(err) {
if (err) return callback(err);
+ if (err === false) return;
_test(check);
}
function check(err, truth) {
if (err) return callback(err);
+ if (err === false) return;
if (!truth) return callback(null);
_fn(next);
}