Poll URL: Don't delete from DB in case of 503

This commit is contained in:
Markus Goetz 2014-08-28 13:44:14 +02:00
parent 6e0330ff65
commit 2aef6a2174

View file

@ -104,7 +104,8 @@ bool PollJob::finished()
_item._status = classifyError(err, _item._httpErrorCode);
_item._errorString = reply()->errorString();
if (_item._status == SyncFileItem::FatalError || _item._httpErrorCode >= 400) {
if (_item._status != SyncFileItem::FatalError) {
if (_item._status != SyncFileItem::FatalError
&& _item._httpErrorCode != 503) {
SyncJournalDb::PollInfo info;
info._file = _item._file;
// no info._url removes it from the database