mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Catch deserialization exceptions on initial /sync
This commit is contained in:
parent
e1a4458a10
commit
f176af0f7a
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ MatrixClient::initialSync() noexcept
|
|||
try {
|
||||
mtx::responses::Sync response = nlohmann::json::parse(reply->readAll());
|
||||
emit initialSyncCompleted(response);
|
||||
} catch (DeserializationException &e) {
|
||||
} catch (std::exception &e) {
|
||||
qWarning() << "Sync malformed response" << e.what();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue