mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +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 {
|
try {
|
||||||
mtx::responses::Sync response = nlohmann::json::parse(reply->readAll());
|
mtx::responses::Sync response = nlohmann::json::parse(reply->readAll());
|
||||||
emit initialSyncCompleted(response);
|
emit initialSyncCompleted(response);
|
||||||
} catch (DeserializationException &e) {
|
} catch (std::exception &e) {
|
||||||
qWarning() << "Sync malformed response" << e.what();
|
qWarning() << "Sync malformed response" << e.what();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue