Commit 9ce8ec5a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Return null if no IQ was received.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10100 b35dd754-fafc-0310-a699-88a17e54d16e
parent aff687d1
...@@ -256,10 +256,6 @@ public class InternalComponentManager extends BasicModule implements ComponentMa ...@@ -256,10 +256,6 @@ public class InternalComponentManager extends BasicModule implements ComponentMa
} catch (InterruptedException e) { } catch (InterruptedException e) {
// Ignore // Ignore
} }
if (reply == null) {
reply = IQ.createResultIQ(packet);
reply.setError(PacketError.Condition.item_not_found);
}
return reply; return reply;
} }
......
...@@ -55,9 +55,6 @@ public interface ComponentManager { ...@@ -55,9 +55,6 @@ public interface ComponentManager {
* The "from" value of the packet must not be null. An <tt>IllegalArgumentException</tt> * The "from" value of the packet must not be null. An <tt>IllegalArgumentException</tt>
* will be thrown when the "from" value is null.<p> * will be thrown when the "from" value is null.<p>
* *
* If no answer is received from the server before the specified timeout then an IQ
* of type error will be returned.
*
* Components are trusted by the server and may use any value in from address. Usually * Components are trusted by the server and may use any value in from address. Usually
* the from address uses the component's address as the domain but this is not required. * the from address uses the component's address as the domain but this is not required.
* *
...@@ -65,7 +62,7 @@ public interface ComponentManager { ...@@ -65,7 +62,7 @@ public interface ComponentManager {
* @param packet the IQ packet to send. * @param packet the IQ packet to send.
* @param timeout the number of milliseconds to wait before returning an IQ error. * @param timeout the number of milliseconds to wait before returning an IQ error.
* @return the answer sent by the server. The answer could be an IQ of type result or * @return the answer sent by the server. The answer could be an IQ of type result or
* error. * error or null if nothing was received.
*/ */
public IQ query(Component component, IQ packet, int timeout) throws ComponentException; public IQ query(Component component, IQ packet, int timeout) throws ComponentException;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment