Browse Source

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

tags/2021-05-28
Rachel Susser 8 years ago
parent
commit
748c7df7cb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp

+ 2
- 1
modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp 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))
{


Loading…
Cancel
Save