Catch deserialization exceptions on initial /sync
This commit is contained in:
parent
e1a4458a10
commit
f176af0f7a
@ -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 New Issue
Block a user