From 13f15c5e4bacb5060b8fb336db2604c5d5aab5d9 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Mon, 3 May 2004 00:43:51 +0000 Subject: [PATCH] Removes hardcoded packet reply timeout value git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2303 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/ServiceDiscoveryManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java index 7e30614bb..7d4a4e0ca 100644 --- a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java +++ b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java @@ -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."); }