Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2014-04-05 14:18:10 +0000
committertjung2014-04-05 14:18:10 +0000
commitf8a7ff96d0e16f16cad2060cbf71cbc49e56c7d2 (patch)
tree958504658f6377b6238e8b583500eaf5f1a4ae0b
parent63829aa3c5df8b933cfb7efc45eabc5b4a0bf58e (diff)
downloadorg.eclipse.etrice-f8a7ff96d0e16f16cad2060cbf71cbc49e56c7d2.tar.gz
org.eclipse.etrice-f8a7ff96d0e16f16cad2060cbf71cbc49e56c7d2.tar.xz
org.eclipse.etrice-f8a7ff96d0e16f16cad2060cbf71cbc49e56c7d2.zip
allow unconnected ports. Don´t put messages into the queue, which does not have a receiver.
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
index f7cb41b13..d80462858 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
@@ -30,6 +30,7 @@ void etPort_sendMessage(const etPort* self, etInt16 evtId, int size, void* data)
int totalSize = offset+size;
etMessage* msg = NULL;
ET_MSC_LOGGER_SYNC_ENTRY("etPort", "sendMessage")
+ if(self->msgService == NULL) return;
msg = etMessageService_getMessageBuffer(self->msgService, totalSize);
if (msg!=NULL) {
msg->address = self->peerAddress;

Back to the top