Trouble when adding connections to AudioProcessorGraph after the fact

I am writing a host application and want to use the AudioProcessorGraph to function as a mixer with sends.
I followed the tutorial
The updateGraph method in the tutorial destroys and rebuilds the graph.
I would like to add connections without re-creating the graph but had no success (The added processor is not audible). Is it possible? Can anyone think of a bit I might have missed?


Never mind. Surrounding my code with this made it work:
player.setProcessor (nullptr);
… adding connection here
player.setProcessor (mainProcessor.get());