lib: do not finalize a non-initialized notification iterator
[babeltrace.git] / lib / graph / connection.c
index ef4fefede918ff625a4349a7e165797b51b7804e..f3fbe7c0526997f2eeee5e7c4fcd70dca0d076c6 100644 (file)
@@ -395,6 +395,7 @@ bt_private_connection_create_notification_iterator(
                }
        }
 
+       iterator->state = BT_NOTIFICATION_ITERATOR_STATE_ACTIVE;
        g_ptr_array_add(connection->iterators, iterator);
        BT_LOGD("Created notification iterator from connection: "
                "conn-addr=%p, upstream-port-addr=%p, "
This page took 0.023034 seconds and 4 git commands to generate.