remove next in callback for now

revisit mounting later
This commit is contained in:
Jonathan Ong 2013-12-19 23:13:37 -08:00
parent 38d5bad4d1
commit 61d437d746

View file

@ -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);
} }
}; };