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