summary refs log tree commit diff
path: root/src/MatrixClient.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-08 18:34:18 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-08 18:34:18 +0300
commit63db04793ba91506fd733eb89a66ad5d42f3d980 (patch)
tree5c5de2f48d0198dfda3550e3d7fe403b8ea89845 /src/MatrixClient.cc
parentAdd tests on travis (diff)
downloadnheko-63db04793ba91506fd733eb89a66ad5d42f3d980.tar.xz
Add sync timeout
Diffstat (limited to '')
-rw-r--r--src/MatrixClient.cc1
1 files changed, 1 insertions, 0 deletions
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()) {