mirror of
https://github.com/owncast/owncast.git
synced 2024-10-23 04:55:56 +03:00
Do not make metrics api call if there is no data to send
This commit is contained in:
parent
d4cbf07055
commit
f8181fd036
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue