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}";