mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +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:
parent
d6edb93227
commit
b6f3741854
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ public final class SmackConfiguration {
|
||||||
* @return the milliseconds to wait for a response from the server
|
* @return the milliseconds to wait for a response from the server
|
||||||
*/
|
*/
|
||||||
public static int getPacketReplyTimeout() {
|
public static int getPacketReplyTimeout() {
|
||||||
|
// Return a default value if packetReplyTimeout has not been initialized yet
|
||||||
|
if (packetReplyTimeout == -1) {
|
||||||
|
return 5000;
|
||||||
|
}
|
||||||
return packetReplyTimeout;
|
return packetReplyTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue