1
0
Fork 0
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:
Gaston Dombiak 2004-05-03 00:43:51 +00:00 committed by gdombiak
parent c1e253dc18
commit 13f15c5e4b

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.");
}