Collect useless graph's connections
[babeltrace.git] / lib / graph / graph.c
index 808296f74f52c0828bf4c95468158d18d71506a9..34e832ad4c3a456c41e15f4404ee95ff8687d4e4 100644 (file)
@@ -588,11 +588,6 @@ enum bt_graph_status bt_graph_run(struct bt_graph *graph)
        }
 
        do {
-               if (graph->canceled) {
-                       status = BT_GRAPH_STATUS_CANCELED;
-                       goto end;
-               }
-
                status = bt_graph_consume(graph);
                if (status == BT_GRAPH_STATUS_AGAIN) {
                        /*
@@ -787,3 +782,12 @@ extern bt_bool bt_graph_is_canceled(struct bt_graph *graph)
 {
        return graph ? graph->canceled : BT_FALSE;
 }
+
+BT_HIDDEN
+void bt_graph_remove_connection(struct bt_graph *graph,
+               struct bt_connection *connection)
+{
+       assert(graph);
+       assert(connection);
+       g_ptr_array_remove(graph->connections, connection);
+}
This page took 0.025223 seconds and 4 git commands to generate.