From dc1b4d31347ae38d46a9f97d7697170d5e56f74c Mon Sep 17 00:00:00 2001 From: Tyler Johnson Date: Sun, 17 Apr 2016 14:40:09 -0600 Subject: [PATCH] fix: don't hang when self aware --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b4a9496..f545618 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import callbackify from "./callbackify"; export default function(options={}) { return async function(req, res, next) { // self-awareness - if (req.authorize) return; + if (req.authorize) return next(); // lock or finish method function done(err) {