1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Bugfix: Detector properly clears throttle's topology cache during detachment. This resolves the assertion failure that has been occurring in the Detector dtor.

This commit is contained in:
Rachel Susser 2018-02-21 11:15:31 +00:00
parent c6e9cf0d61
commit 748c7df7cb

View file

@ -878,6 +878,7 @@ struct PhysicalTopologySource::Internal
bi->sendCommandMessage (BlocksProtocol::endAPIMode);
currentTopology = {};
topologyBroadcastThrottle.lastTopology = {};
auto& d = getDefaultDetectorPointer();
@ -922,7 +923,7 @@ struct PhysicalTopologySource::Internal
for (int i = currentTopology.blocks.size(); --i >= 0;)
{
auto block = currentTopology.blocks.getUnchecked(i);
auto block = currentTopology.blocks.getUnchecked (i);
if (! containsBlockWithUID (newDeviceInfo, block->uid))
{