Skip to content

Commit

Permalink
Tentative fix for problems restoring state
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Dec 15, 2021
1 parent a17a34a commit 1a7a384
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/plugin_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,10 @@ void AdlplugAudioProcessor::getStateInformation(MemoryBlock &data)
std::lock_guard<std::mutex> lock(player_lock_);

Player *pl = player_.get();
if (!pl)
if (!pl) {
data = last_state_information_;
return;
}

const Parameter_Block &pb = *parameter_block_;
const Bank_Manager &bm = *bank_manager_;
Expand Down

0 comments on commit 1a7a384

Please sign in to comment.