mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Add sync timeout
This commit is contained in:
parent
e77fb8a6e7
commit
63db04793b
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue