Catch deserialization exceptions on initial /sync

pull/1/head
Konstantinos Sideris 7 years ago
parent e1a4458a10
commit f176af0f7a
  1. 2
      src/MatrixClient.cc

@ -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…
Cancel
Save