1
0
Fork 0

Merge pull request #2509 from BartS23/BartS23-fix-2405

Don't send app_stats on disconnect
master
Gordon Williams 2023-01-18 14:20:34 +00:00 committed by GitHub
commit a404e05134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ var submittedUsageInfo = "";
function sendUsageStats() { function sendUsageStats() {
if (!SETTINGS.sendUsageStats) return; // not allowed! if (!SETTINGS.sendUsageStats) return; // not allowed!
if (device.uid === undefined) return; // no data yet! if (device.uid === undefined) return; // no data yet!
if (!device.appsInstalled.length) return; // no installed apps or disconnected
/* Work out what we'll send: /* Work out what we'll send:
* A suitably garbled UID so we can avoid too many duplicates * A suitably garbled UID so we can avoid too many duplicates
* firmware version * firmware version