mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-30 07:52:06 +01:00
Replaces a hardcoded value in #startup with one provided by SmackConfiguration.getPacketReplyTimeout. SMACK-156
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2383 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
c396be83d1
commit
5ab0c1b7e7
1 changed files with 2 additions and 2 deletions
|
@ -180,11 +180,11 @@ class PacketReader {
|
||||||
public void startup() throws XMPPException {
|
public void startup() throws XMPPException {
|
||||||
readerThread.start();
|
readerThread.start();
|
||||||
listenerThread.start();
|
listenerThread.start();
|
||||||
// Wait for stream tag before returing. We'll wait a maximum of five seconds before
|
// Wait for stream tag before returing. We'll wait a couple of seconds before
|
||||||
// giving up and throwing an error.
|
// giving up and throwing an error.
|
||||||
try {
|
try {
|
||||||
synchronized(connectionIDLock) {
|
synchronized(connectionIDLock) {
|
||||||
connectionIDLock.wait(5000);
|
connectionIDLock.wait(SmackConfiguration.getPacketReplyTimeout());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (InterruptedException ie) { }
|
catch (InterruptedException ie) { }
|
||||||
|
|
Loading…
Reference in a new issue