diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-05-08 18:34:18 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-05-08 18:34:18 +0300 |
commit | 63db04793ba91506fd733eb89a66ad5d42f3d980 (patch) | |
tree | 5c5de2f48d0198dfda3550e3d7fe403b8ea89845 /src/MatrixClient.cc | |
parent | Add tests on travis (diff) | |
download | nheko-63db04793ba91506fd733eb89a66ad5d42f3d980.tar.xz |
Add sync timeout
Diffstat (limited to '')
-rw-r--r-- | src/MatrixClient.cc | 1 |
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()) { |