1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-27 14:47:59 +01:00

KeepAliveTask: Increased the initial heartbeat dealy in order to

prevent a heartbeat timeout in high latency situations (mobile
environments)"

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13389 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Florian Schmaus 2013-01-06 14:02:35 +00:00 committed by flow
parent 7770511111
commit 3c2eaba840

View file

@ -277,9 +277,9 @@ class PacketWriter {
public void run() {
try {
// Sleep 15 seconds before sending first heartbeat. This will give time to
// Sleep a minimum of 15 seconds plus delay before sending first heartbeat. This will give time to
// properly finish TLS negotiation and then start sending heartbeats.
Thread.sleep(15000);
Thread.sleep(15000 + delay);
}
catch (InterruptedException ie) {
// Do nothing