1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

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

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