Skip to content

Commit

Permalink
[courier/segmentedRequest] mark the request "started" synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Mar 24, 2016
1 parent fd2f9d8 commit 8a49926
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/public/courier/fetch/request/segmented.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default function SegmentedReqProvider(es, Private, Promise, timefilter, c
*********/

start() {
super.start();

this._complete = [];
this._active = null;
this._segments = [];
Expand All @@ -61,12 +63,12 @@ export default function SegmentedReqProvider(es, Private, Promise, timefilter, c
// parameters via the handle
if (_.isFunction(this._initFn)) this._initFn(this._handle);
return this._createQueue().then((queue) => {
if (this.stopped) return;

this._all = queue.slice(0);

// Send the initial fetch status
this._reportStatus();

return super.start();
});
}

Expand Down

0 comments on commit 8a49926

Please sign in to comment.