aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-11-20 10:47:48 +0100
committerChristian Schneppe <christian@pix-art.de>2016-11-20 10:47:48 +0100
commita969706f409cc45d267bddc11acc68a5d9deba16 (patch)
tree1cc9676232add2b4054cc3615c991644b9756b2a
parent9047c99fc6c9935826e1576ed7bac5140d9d42d7 (diff)
lower reconnection time
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 7bd531097..d9bf5f7f0 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -355,7 +355,7 @@ public class XmppConnectionService extends Service {
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": went into offline state during low ping mode. reconnecting now");
reconnectAccount(account, true, false);
} else {
- int timeToReconnect = mRandom.nextInt(20) + 10;
+ int timeToReconnect = mRandom.nextInt(10) + 2;
scheduleWakeUpCall(timeToReconnect, account.getUuid().hashCode());
}
}