mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Propagation: Connection closed is a normal error #6516
Because it sometimes appears in conjunction with server bugs and we don't want to halt all syncing for other files in these cases.
This commit is contained in:
parent
f540c37ad3
commit
4fa762b5ce
@ -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 New Issue
Block a user