Skip to content

Commit f15ea6f

Browse files
rueckstiesskangas
authored andcommitted
INT-1242 destroy streams on error. better trickle behavior.
1 parent f6a6a15 commit f15ea6f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app/models/sampled-schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ module.exports = Schema.extend({
193193

194194
model.samplingStream
195195
.on('error', function(sampleErr) {
196-
this.destroy();
196+
model.samplingStream.destroy();
197+
model.analyzingStream.destroy();
197198
onFail(sampleErr);
198199
})
199200
.pipe(model.analyzingStream)

src/app/statusbar/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ var StatusbarView = View.extend({
118118
trickle: function(bool) {
119119
if (bool) {
120120
this.trickleTimer = setInterval(function() {
121-
this.width = Math.min(98, this.width + _.random(1, 3));
122-
}.bind(this), 400);
121+
this.width = Math.min(98, this.width + 1);
122+
}.bind(this), 600);
123123
} else {
124124
clearInterval(this.trickleTimer);
125125
}

0 commit comments

Comments
 (0)