Fix a bug introduced in an earlier commit.

This commit is contained in:
David Reid
2021-06-09 17:18:02 +10:00
parent 59565c03ad
commit cde21de5c5
+8 -2
View File
@@ -7054,8 +7054,14 @@ done:
}
}
if ((flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
ma_resource_manager_inline_notification_uninit(&initNotification);
/*
The init notification needs to be uninitialized. This will be used if the node does not already
exist, and we've specified ASYNC | WAIT_INIT.
*/
if (nodeAlreadyExists == MA_FALSE) {
if ((flags & MA_DATA_SOURCE_FLAG_ASYNC) != 0 && (flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
ma_resource_manager_inline_notification_uninit(&initNotification);
}
}
*ppDataBufferNode = pDataBufferNode;