summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 9596d561..719c697b 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -1169,6 +1169,12 @@ ChatPage::initialSyncHandler(const mtx::responses::Sync &res, mtx::http::Request nhlog::net()->error("initial sync error: {} {}", status_code, err_code); + // non http related errors + if (status_code <= 0 || status_code >= 600) { + startInitialSync(); + return; + } + switch (status_code) { case 502: case 504: