summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/SetPortValue.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index 1c10abc5..6d088939 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -88,9 +88,8 @@ SetPortValue::pre_process()
// Port is a message context port, set its value and
// call the plugin's message run function once
- if (_port && _port->context() == Context::MESSAGE) {
+ if (_port && _port->parent_node()->context() == Context::MESSAGE) {
apply(*_engine.message_context());
- _port->parent_node()->set_port_valid(_port->index());
_engine.message_context()->run(_port->parent_node(),
_engine.driver()->frame_time() + _engine.driver()->block_length());
}
@@ -111,7 +110,7 @@ SetPortValue::execute(ProcessContext& context)
Event::execute(context);
assert(_time >= context.start() && _time <= context.end());
- if (_port && _port->context() == Context::MESSAGE)
+ if (_port && _port->parent_node()->context() == Context::MESSAGE)
return;
apply(context);