mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +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
|
||||
*/
|
||||
public static int getPacketReplyTimeout() {
|
||||
// Return a default value if packetReplyTimeout has not been initialized yet
|
||||
if (packetReplyTimeout == -1) {
|
||||
return 5000;
|
||||
}
|
||||
return packetReplyTimeout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue