fix: don't send empty data

This commit is contained in:
2023-01-03 16:23:26 +01:00
parent 8aca291c2f
commit b6872f03b8

View File

@@ -42,9 +42,12 @@ const throttledPM = (() => {
}
if (lastUpdate + updateDelay <= now || finish) {
pm(limitData(dataCache.join('\n')));
lastUpdate = now;
dataCache = [];
const data = limitData(dataCache.join('\n'));
if (data) {
pm(data);
lastUpdate = now;
dataCache = [];
}
}
if (tryAgain) {