Skip to content

Commit

Permalink
[Telemetry] Remove initial delay to check and send (#26575)
Browse files Browse the repository at this point in the history
* [Telemetry] Remove initial delay to check and send

* do not fire immediately
  • Loading branch information
tsullivan authored Dec 4, 2018
1 parent d8a70b5 commit ee3fc58
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions x-pack/plugins/xpack_main/public/hacks/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,7 @@ export class Telemetry {
* Public method
*/
start() {
// delay the initial report to allow the user some time to read the opt-out message
let hasWaited = false;

// continuously check if it's due time for a report
window.setInterval(() => {
if (hasWaited) {
// throw away the return data
this._sendIfDue();
}
hasWaited = true;
}, 60000);
window.setInterval(() => this._sendIfDue(), 60000);
}

} // end class

0 comments on commit ee3fc58

Please sign in to comment.