From f176af0f7ad14f86943c8b424817db3ab819e145 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 6 Dec 2017 21:25:56 +0200 Subject: [PATCH] Catch deserialization exceptions on initial /sync --- src/MatrixClient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 8214cfc5..2878c4bb 100644 --- a/src/MatrixClient.cc +++ b/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; }