Skip to content

Commit

Permalink
fix: don't hang when self aware
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-johnson committed Apr 17, 2016
1 parent 5fa90eb commit dc1b4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc1b4d3

Please sign in to comment.