mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[cscore] Fix wakeup on sink destruction (#7245)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user