Author: berndf
Date: Thu Sep 10 10:09:09 2009
New Revision: 813348
URL: http://svn.apache.org/viewvc?rev=813348&view=rev
Log:
VYSPER-182 add missing returns from program flow. fixes this issue of doubly
sent MUC messages
Modified:
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/inbound/DeliveringInboundStanzaRelay.java
Modified:
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/inbound/DeliveringInboundStanzaRelay.java
URL:
http://svn.apache.org/viewvc/mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/inbound/DeliveringInboundStanzaRelay.java?rev=813348&r1=813347&r2=813348&view=diff
==============================================================================
---
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/inbound/DeliveringInboundStanzaRelay.java
(original)
+++
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/inbound/DeliveringInboundStanzaRelay.java
Thu Sep 10 10:09:09 2009
@@ -169,6 +169,7 @@
}
processor.processStanza(serverRuntimeContext, null,
stanza, null);
+ return new RelayResult();
}
if (receiver.isResourceSet()) {
@@ -185,7 +186,7 @@
@SpecCompliant(spec="draft-ietf-xmpp-3921bis-00", section="8.3.",
status= SpecCompliant.ComplianceStatus.IN_PROGRESS, coverage =
SpecCompliant.ComplianceCoverage.COMPLETE)
private RelayResult deliverToBareJID() {
XMPPCoreStanza xmppStanza = XMPPCoreStanza.getWrapper(stanza);
- if (xmppStanza == null) new RelayResult(new
DeliveryException("unable to deliver stanza which is not IQ, presence or
message"));
+ if (xmppStanza == null) return new RelayResult(new
DeliveryException("unable to deliver stanza which is not IQ, presence or
message"));
if (PresenceStanza.isOfType(stanza)) {
return relayToAllSessions();