Add sync timeout

This commit is contained in:
Konstantinos Sideris 2017-05-08 18:34:18 +03:00
parent e77fb8a6e7
commit 63db04793b

View file

@ -436,6 +436,7 @@ void MatrixClient::sync() noexcept
QUrlQuery query; QUrlQuery query;
query.addQueryItem("set_presence", "online"); query.addQueryItem("set_presence", "online");
query.addQueryItem("filter", QJsonDocument(filter).toJson(QJsonDocument::Compact)); query.addQueryItem("filter", QJsonDocument(filter).toJson(QJsonDocument::Compact));
query.addQueryItem("timeout", "30000");
query.addQueryItem("access_token", token_); query.addQueryItem("access_token", token_);
if (next_batch_.isEmpty()) { if (next_batch_.isEmpty()) {