1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +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:
Gaston Dombiak 2004-09-24 02:11:49 +00:00 committed by gdombiak
parent c396be83d1
commit 5ab0c1b7e7

View file

@ -180,11 +180,11 @@ class PacketReader {
public void startup() throws XMPPException {
readerThread.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.
try {
synchronized(connectionIDLock) {
connectionIDLock.wait(5000);
connectionIDLock.wait(SmackConfiguration.getPacketReplyTimeout());
}
}
catch (InterruptedException ie) { }