From 63db04793ba91506fd733eb89a66ad5d42f3d980 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 8 May 2017 18:34:18 +0300 Subject: [PATCH] Add sync timeout --- src/MatrixClient.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index f3b5a8ac..b14dcf92 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -436,6 +436,7 @@ void MatrixClient::sync() noexcept QUrlQuery query; query.addQueryItem("set_presence", "online"); query.addQueryItem("filter", QJsonDocument(filter).toJson(QJsonDocument::Compact)); + query.addQueryItem("timeout", "30000"); query.addQueryItem("access_token", token_); if (next_batch_.isEmpty()) {