Skip to content

Commit

Permalink
When rt.stats is assigned, won't rewrite it. Fix #71
Browse files Browse the repository at this point in the history
  • Loading branch information
fool2fish committed Mar 6, 2014
1 parent 405d4e7 commit eba52d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/order.js
Expand Up @@ -170,8 +170,11 @@ Order.prototype.report = function(data) {
break
}
case 'end':
this.labors[laborId].stats = data.info
this.checkIsEndAll()
// See #71
if (!this.labors[laborId].stats) {
this.labors[laborId].stats = data.info
this.checkIsEndAll()
}
break
default:
break
Expand Down

0 comments on commit eba52d5

Please sign in to comment.