mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-30 07:52:06 +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