Commit 47ae4f28 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

si-standard-link: make sure create_links creates at least 1 link

parent 888667d7
......@@ -401,7 +401,7 @@ create_links (WpSiStandardLink * self, WpTransition * transition,
}
}
g_variant_iter_free (iter);
return TRUE;
return self->node_links > 0;
}
static void
......@@ -420,7 +420,7 @@ si_standard_link_do_link (WpSiStandardLink *self, WpTransition *transition)
if (!create_links (self, transition, out_ports, in_ports))
wp_transition_return_error (transition, g_error_new (WP_DOMAIN_LIBRARY,
WP_LIBRARY_ERROR_INVARIANT,
"Bad port info returned from one of the items"));
"Failed to create links because of wrong ports"));
}
static void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment