From b6f3741854a9333a86cd90f656b72ca959410c18 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Fri, 2 Jan 2004 00:29:41 +0000 Subject: [PATCH] Answers a default timeout value if timeout value has not been initialized yet git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2194 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/SmackConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/org/jivesoftware/smack/SmackConfiguration.java b/source/org/jivesoftware/smack/SmackConfiguration.java index b11516cdd..260cf9fde 100644 --- a/source/org/jivesoftware/smack/SmackConfiguration.java +++ b/source/org/jivesoftware/smack/SmackConfiguration.java @@ -167,6 +167,10 @@ public final class SmackConfiguration { * @return the milliseconds to wait for a response from the server */ public static int getPacketReplyTimeout() { + // Return a default value if packetReplyTimeout has not been initialized yet + if (packetReplyTimeout == -1) { + return 5000; + } return packetReplyTimeout; }