Do not make metrics api call if there is no data to send
This commit is contained in:
@@ -181,6 +181,10 @@ class PlaybackMetrics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async send() {
|
async send() {
|
||||||
|
if (this.segmentDownloadTime.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const errorCount = this.errors;
|
const errorCount = this.errors;
|
||||||
|
|
||||||
var data;
|
var data;
|
||||||
|
|||||||
Reference in New Issue
Block a user