Skip to content

Commit

Permalink
correct problem where second router in the an app.use sequence was be…
Browse files Browse the repository at this point in the history
…ing setup two times causing an error
  • Loading branch information
nrstott committed Dec 9, 2012
1 parent 05c6ee2 commit 6afb84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bogart.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ App.prototype.start = function(port, host) {
if (Router.isRouter(descriptor.middleware)) {
descriptor.middleware.nextApp = app;
app = descriptor.middleware;
} else {
app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
}

app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
});
}

Expand Down

0 comments on commit 6afb84e

Please sign in to comment.