Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis@composent.com2010-10-19 16:19:53 -0400
committerslewis@composent.com2010-10-19 16:19:53 -0400
commit5ca18be58259810472aa3741b2e411b55f3a45a1 (patch)
tree4aa03342854be1abc10f2a4c7888a753b66f66af /providers/bundles/org.eclipse.ecf.provider.xmpp
parentc2db36986539d6d39bf96398d58f635e488fb059 (diff)
downloadorg.eclipse.ecf-5ca18be58259810472aa3741b2e411b55f3a45a1.tar.gz
org.eclipse.ecf-5ca18be58259810472aa3741b2e411b55f3a45a1.tar.xz
org.eclipse.ecf-5ca18be58259810472aa3741b2e411b55f3a45a1.zip
Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=327919
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.xmpp')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
index 75362ae3a..e57a4fb30 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
@@ -148,6 +148,26 @@ public class XMPPContainer extends ClientSOContainer implements
userhost)), ka);
}
+ /**
+ * @since 3.2
+ */
+ protected boolean verifySharedObjectMessageTarget(ID containerID) {
+ return true;
+ }
+
+ protected void sendMessage(ContainerMessage data) throws IOException {
+ super.sendMessage(data);
+ synchronized (getConnectLock()) {
+ ID connectedID = getConnectedID();
+ if (connectedID == null)
+ throw new ConnectException("Container not connected"); //$NON-NLS-1$
+ synchronized (getGroupMembershipLock()) {
+ if (connectedID.equals(data.getToContainerID()))
+ queueContainerMessage(data);
+ }
+ }
+ }
+
public IRosterManager getRosterManager() {
return presenceHelper.getRosterManager();
}

Back to the top