Skip to content

Commit

Permalink
Merge pull request #4 from BeneathTheInk/dev
Browse files Browse the repository at this point in the history
fix: don't hang when self aware
  • Loading branch information
tyler-johnson committed Apr 17, 2016
2 parents 6813ce1 + dc1b4d3 commit 8f7a1e5
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 8f7a1e5

Please sign in to comment.