Tweak Streams connection timeout

This commit is contained in:
Bleak Grey 2020-06-20 13:27:18 +03:00
parent f964e745b7
commit 67c4a1f049
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public class Tootle.Streams : Object {
protected Message msg;
protected bool closing = false;
protected int timeout = 2;
protected int timeout = 1;
public string name {
owned get {
@ -67,7 +67,7 @@ public class Tootle.Streams : Object {
if (!closing) {
warning (@"DISCONNECTED: $name. Reconnecting in $timeout seconds.");
GLib.Timeout.add_seconds (timeout, start);
timeout = int.min (timeout*2, 30);
timeout = int.min (timeout*2, 6);
}
warning (@"Closing stream: $name");
}