From 5ab0c1b7e734c2c93b5163e9d5ff40375108deeb Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Fri, 24 Sep 2004 02:11:49 +0000 Subject: [PATCH] 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 --- source/org/jivesoftware/smack/PacketReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 08dfb37af..46d87c90a 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -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) { }