Display the specific network error text and increase retry coefficient during CLOUDFLARE TIEM!

This commit is contained in:
Nicolas Stepien 2012-06-30 21:26:28 +02:00
parent 9f756df31a
commit a6bf046f8c
2 changed files with 14 additions and 0 deletions

View File

@ -2648,6 +2648,14 @@
QR.abort();
return;
}
if (this.status !== 200 && this.status !== 304) {
Updater.retryCoef += 10 * (Updater.retryCoef < 120);
if (Conf['Verbose']) {
Updater.count.textContent = this.statusText;
Updater.count.className = 'warning';
}
return;
}
Updater.retryCoef = 10;
Updater.timer.textContent = "-" + Conf['Interval'];
/*

View File

@ -2073,6 +2073,12 @@ Updater =
Unread.update true
QR.abort()
return
if @status isnt 200 and @status isnt 304
Updater.retryCoef += 10 * (Updater.retryCoef < 120)
if Conf['Verbose']
Updater.count.textContent = @statusText
Updater.count.className = 'warning'
return
Updater.retryCoef = 10
Updater.timer.textContent = "-#{Conf['Interval']}"