From 2685b2b5e9717cbd7787f9fc20fca2ac6647eab8 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 10 Jun 2019 10:01:10 +0000 Subject: [PATCH] Add +5 seconds for timeout so sync timeout will not trigger no response from server. --- lib/src/Connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index 3c62482..d53e3f0 100644 --- a/lib/src/Connection.dart +++ b/lib/src/Connection.dart @@ -171,7 +171,7 @@ class Connection { {String type, String action, dynamic data = "", int timeout}) async { if (client.isLogged() == false && client.homeserver == null) throw ("No homeserver specified."); - if (timeout == null) timeout = syncTimeoutSec; + if (timeout == null) timeout = syncTimeoutSec + 5; if (!(data is String)) data = jsonEncode(data); final url = "${client.homeserver}/_matrix${action}";