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
This commit is contained in:
Gaston Dombiak 2004-01-02 00:29:41 +00:00 committed by gdombiak
parent d6edb93227
commit b6f3741854
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}