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:
Gaston Dombiak 2004-05-03 00:43:51 +00:00 committed by gdombiak
parent c1e253dc18
commit 13f15c5e4b
1 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ public class ServiceDiscoveryManager {
connection.sendPacket(disco);
// Wait up to 5 seconds for a result.
IQ result = (IQ) collector.nextResult(5000);
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
if (result == null) {
throw new XMPPException("No response from the server.");
}
@ -298,7 +298,7 @@ public class ServiceDiscoveryManager {
connection.sendPacket(disco);
// Wait up to 5 seconds for a result.
IQ result = (IQ) collector.nextResult(5000);
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
if (result == null) {
throw new XMPPException("No response from the server.");
}
@ -329,7 +329,7 @@ public class ServiceDiscoveryManager {
connection.sendPacket(discoverItems);
// Wait up to 5 seconds for a result.
IQ result = (IQ) collector.nextResult(5000);
IQ result = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
if (result == null) {
throw new XMPPException("No response from the server.");
}