mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Merge pull request #380 from nextcloud/upstream/pr/6533
Propagation: Connection closed is a normal error #6516
This commit is contained in:
commit
b2a8eea875
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,12 @@ inline SyncFileItem::Status classifyError(QNetworkReply::NetworkError nerror,
|
|||
{
|
||||
Q_ASSERT(nerror != QNetworkReply::NoError); // we should only be called when there is an error
|
||||
|
||||
if (nerror == QNetworkReply::RemoteHostClosedError) {
|
||||
// Sometimes server bugs lead to a connection close on certain files,
|
||||
// that shouldn't bring the rest of the syncing to a halt.
|
||||
return SyncFileItem::NormalError;
|
||||
}
|
||||
|
||||
if (nerror > QNetworkReply::NoError && nerror <= QNetworkReply::UnknownProxyError) {
|
||||
// network error or proxy error -> fatal
|
||||
return SyncFileItem::FatalError;
|
||||
|
|
Loading…
Reference in a new issue