From 5ae662a25748359691b272b9736d7d0734c75de5 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Sun, 13 Apr 2003 04:49:27 +0000 Subject: [PATCH] Minor logic fix. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1886 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/GroupChat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/GroupChat.java b/source/org/jivesoftware/smack/GroupChat.java index c728ab714..4c37109c1 100644 --- a/source/org/jivesoftware/smack/GroupChat.java +++ b/source/org/jivesoftware/smack/GroupChat.java @@ -138,12 +138,13 @@ public class GroupChat { // field is in the form "roomName@service/nickname" Presence joinPresence = new Presence(Presence.Type.AVAILABLE); joinPresence.setTo(room + "/" + nickname); - connection.sendPacket(joinPresence); // Wait for a presence packet back from the server. PacketFilter responseFilter = new AndFilter( new FromContainsFilter(room + "/" + nickname), new PacketTypeFilter(Presence.class)); PacketCollector response = connection.createPacketCollector(responseFilter); + // Send join packet. + connection.sendPacket(joinPresence); // Wait up to five seconds for a reply. Presence presence = (Presence)response.nextResult(5000); if (presence == null) {