fix(tracker): fix q sender token mismatch during assist connection

This commit is contained in:
nick-delirium 2023-04-28 16:58:03 +02:00
parent df21547235
commit 9fb1735d2c

View file

@ -78,6 +78,16 @@ export default class QueueSender {
headers['Content-Encoding'] = 'gzip'
}
/**
* sometimes happen during assist connects for some reason
* */
if (this.token === null) {
setTimeout(() => {
this.sendBatch(batch, isCompressed)
}, 500)
return
}
fetch(this.ingestURL, {
body: batch,
method: 'POST',