1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-18 09:24:49 +02:00

Move variables into loop in Roster.waitUntilLoaded()

This commit is contained in:
Florian Schmaus 2015-01-19 16:11:12 +01:00
parent 4a5732d679
commit 1f59a755d8

View file

@ -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;
} }