Catch deserialization exceptions on initial /sync

This commit is contained in:
Konstantinos Sideris 2017-12-06 21:25:56 +02:00
parent e1a4458a10
commit f176af0f7a

View file

@ -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;
}