mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[courier/segmentedRequest] mark the request "started" synchronously
This commit is contained in:
parent
fd2f9d87ce
commit
8a4992640b
1 changed files with 4 additions and 2 deletions
|
@ -42,6 +42,8 @@ export default function SegmentedReqProvider(es, Private, Promise, timefilter, c
|
|||
*********/
|
||||
|
||||
start() {
|
||||
super.start();
|
||||
|
||||
this._complete = [];
|
||||
this._active = null;
|
||||
this._segments = [];
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue