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 fn = co(gen);
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
return function(req, res, next){
|
return function(req, res){
|
||||||
var ctx = self.createContext(req, res);
|
var ctx = self.createContext(req, res);
|
||||||
next = next || ctx.onerror;
|
ctx.onSocketError(ctx.onerror);
|
||||||
ctx.onSocketError(next);
|
fn.call(ctx, ctx.onerror);
|
||||||
fn.call(ctx, next);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue