remove next
in callback for now
revisit mounting later
This commit is contained in:
parent
38d5bad4d1
commit
61d437d746
1 changed files with 3 additions and 4 deletions
|
@ -97,11 +97,10 @@ app.callback = function(){
|
|||
var fn = co(gen);
|
||||
var self = this;
|
||||
|
||||
return function(req, res, next){
|
||||
return function(req, res){
|
||||
var ctx = self.createContext(req, res);
|
||||
next = next || ctx.onerror;
|
||||
ctx.onSocketError(next);
|
||||
fn.call(ctx, next);
|
||||
ctx.onSocketError(ctx.onerror);
|
||||
fn.call(ctx, ctx.onerror);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue