diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 17:53:23 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 17:53:23 +0200 |
commit | 0dfb9bd1a06436ffb6dd7a5cfbdefa11d3ae130e (patch) | |
tree | 1831d67f9f63260fe498701f7aac6b52a46e3e9b /src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java | |
parent | bbfd98b726d732d1b9d2670247fbef51ba379866 (diff) |
introduce special iq type for internal timeouts. always use != result to check for error in callbacks
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java b/src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java index 398102e1..49b27408 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java +++ b/src/main/java/eu/siacs/conversations/xmpp/stanzas/IqPacket.java @@ -4,12 +4,13 @@ import eu.siacs.conversations.xml.Element; public class IqPacket extends AbstractStanza { - public static enum TYPE { + public enum TYPE { ERROR, SET, RESULT, GET, - INVALID + INVALID, + TIMEOUT } public IqPacket(final TYPE type) { |