[cscore] Fix wakeup on sink destruction (#7245)

This commit is contained in:
Peter Johnson
2024-10-22 08:02:20 -06:00
committed by GitHub
parent cbdb4e81f6
commit 7cc7fa1845

View File

@@ -98,6 +98,9 @@ void Instance::DestroySource(CS_Source handle) {
void Instance::DestroySink(CS_Sink handle) {
if (auto data = m_sinks.Free(handle)) {
if (auto source = data->sink->GetSource()) {
source->Wakeup();
}
notifier.NotifySink(data->sink->GetName(), handle, CS_SINK_DESTROYED);
}
}