Permalink
Browse files

Merge "fix filterService last before filter err bug"

  • Loading branch information...
Charlie Edward Gerrit Code Review
Charlie Edward authored and Gerrit Code Review committed Jan 21, 2013
2 parents a5f1f0f + 7b0b94a commit f0a57a0d090b77a3a336dedbcada83063bb27a00
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/common/service/filterService.js
@@ -46,14 +46,8 @@ Service.prototype.after = function(filter){
Service.prototype.beforeFilter = function(msg, session, cb) {
var index = 0, self = this;
var next = function(err, resp) {
if(index >= self.befores.length) {
// if done
cb();
return;
}
if(err) {
// if error
cb(err, resp);
if(err || index >= self.befores.length) {
cb(err);
return;
}

0 comments on commit f0a57a0

Please sign in to comment.