Refactor: telemetry sending
- Fix bug where approxNumTorrents and other stats were not refreshed when getting sent on 12 hour interval - Lazy require modules - Move setInterval into renderer/main.js - Remove low-level https usage, use simple-get
This commit is contained in:
@@ -134,6 +134,10 @@ function onState (err, _state) {
|
||||
function delayedInit () {
|
||||
telemetry.send(state)
|
||||
|
||||
// Send telemetry data every 12 hours, for users who keep the app running
|
||||
// for extended periods of time
|
||||
setInterval(() => telemetry.send(state), 12 * 3600 * 1000)
|
||||
|
||||
// Warn if the download dir is gone, eg b/c an external drive is unplugged
|
||||
checkDownloadPath()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user