Do not break push on error (see #713)

Removed 507 handling on pulling changes since pulling shouldn't change the server state and therefore never return a 507 HTTP

Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
stefan-niedermann 2020-02-04 22:44:57 +01:00 committed by Niedermann IT-Dienstleistungen
parent d6aef638e2
commit ae6d1629ee

View file

@ -435,9 +435,6 @@ public class NoteServerSyncHelper {
Log.d(TAG, "Server returned HTTP Status Code " + e.getStatusCode() + " - " + e.getMessage());
if (e.getStatusCode() == 304) {
return LoginStatus.OK;
} else if (e.getStatusCode() == 507) {
exceptions.add(e);
return LoginStatus.INSUFFICIENT_STORAGE;
} else {
exceptions.add(e);
return LoginStatus.JSON_FAILED;