mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Move variables into loop in Roster.waitUntilLoaded()
This commit is contained in:
parent
4a5732d679
commit
1f59a755d8
1 changed files with 2 additions and 2 deletions
|
@ -234,9 +234,9 @@ public class Roster {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean waitUntilLoaded() {
|
protected boolean waitUntilLoaded() {
|
||||||
long waitTime = connection.getPacketReplyTimeout();
|
|
||||||
long start = System.currentTimeMillis();
|
|
||||||
while (!loaded) {
|
while (!loaded) {
|
||||||
|
long waitTime = connection.getPacketReplyTimeout();
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
if (waitTime <= 0) {
|
if (waitTime <= 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue