diff options
Diffstat (limited to 'src/server/events/Disconnect.cpp')
-rw-r--r-- | src/server/events/Disconnect.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index 914e3375..65c5b078 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -149,9 +149,9 @@ Disconnect::pre_process() _graph = src_block->parent_graph(); } - assert(_graph); - - if (!_graph->has_edge(tail, head)) { + if (!_graph) { + return Event::pre_process_done(INTERNAL_ERROR, _head_path); + } else if (!_graph->has_edge(tail, head)) { return Event::pre_process_done(NOT_FOUND, _head_path); } @@ -192,9 +192,6 @@ Disconnect::Impl::execute(ProcessContext& context, bool set_dst_buffers) _dst_input_port->recycle_buffers(); } - assert(_edge); - assert(port_edge == _edge.get()); - return true; } |