mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
Removes hardcoded packet reply timeout value
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2303 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
c1e253dc18
commit
13f15c5e4b
1 changed files with 3 additions and 3 deletions
|
@ -253,7 +253,7 @@ public class ServiceDiscoveryManager {
|
||||||
connection.sendPacket(disco);
|
connection.sendPacket(disco);
|
||||||
|
|
||||||
// Wait up to 5 seconds for a result.
|
// Wait up to 5 seconds for a result.
|
||||||
IQ result = (IQ) collector.nextResult(5000);
|
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
throw new XMPPException("No response from the server.");
|
throw new XMPPException("No response from the server.");
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ public class ServiceDiscoveryManager {
|
||||||
connection.sendPacket(disco);
|
connection.sendPacket(disco);
|
||||||
|
|
||||||
// Wait up to 5 seconds for a result.
|
// Wait up to 5 seconds for a result.
|
||||||
IQ result = (IQ) collector.nextResult(5000);
|
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
throw new XMPPException("No response from the server.");
|
throw new XMPPException("No response from the server.");
|
||||||
}
|
}
|
||||||
|
@ -329,7 +329,7 @@ public class ServiceDiscoveryManager {
|
||||||
connection.sendPacket(discoverItems);
|
connection.sendPacket(discoverItems);
|
||||||
|
|
||||||
// Wait up to 5 seconds for a result.
|
// Wait up to 5 seconds for a result.
|
||||||
IQ result = (IQ) collector.nextResult(5000);
|
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
throw new XMPPException("No response from the server.");
|
throw new XMPPException("No response from the server.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue