mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-24 05:27:56 +01:00
Improved packet timeout logic.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2501 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
d64eb0ffdb
commit
93ca7bc991
2 changed files with 6 additions and 2 deletions
|
@ -154,7 +154,9 @@ class PacketReader {
|
|||
break;
|
||||
}
|
||||
connectionIDLock.wait(waitTime);
|
||||
waitTime -= System.currentTimeMillis() - start;
|
||||
long now = System.currentTimeMillis();
|
||||
waitTime -= now - start;
|
||||
start = now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -459,7 +459,9 @@ public class XMPPConnection {
|
|||
break;
|
||||
}
|
||||
roster.wait(waitTime);
|
||||
waitTime -= System.currentTimeMillis() - start;
|
||||
long now = System.currentTimeMillis();
|
||||
waitTime -= now - start;
|
||||
start = now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue