Skip to content

Commit

Permalink
Fix deadlock when we create instrument during remove another one.
Browse files Browse the repository at this point in the history
  • Loading branch information
akimaze committed May 21, 2022
1 parent a8b0526 commit 5cf3bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio/Juce_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2458,8 +2458,8 @@ static void cleanup_plugin_data(SoundPlugin *plugin){
#endif

// Then schedule deletion in 5 seconds.
#if 0
delete data->audio_instance;
#if 1
//delete data->audio_instance;
delete data;
#else
new DelayDeleteData(data);
Expand Down

0 comments on commit 5cf3bbb

Please sign in to comment.