Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
fix filterService last before filter err bug
Browse files Browse the repository at this point in the history
Change-Id: Ia1c4520b70c5daafc8bb760b1f0549f558414290
  • Loading branch information
changchang committed Jan 11, 2013
1 parent c1b7a8a commit 7b0b94a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/common/service/filterService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7b0b94a

Please sign in to comment.