Skip to content

Commit

Permalink
Merge pull request #3044 from brave/exclude-crash
Browse files Browse the repository at this point in the history
Fixes exclude crash
  • Loading branch information
NejcZdovc committed Jul 31, 2019
2 parents 9b41325 + b700806 commit 0c3a355
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void BatPublishers::OnSetPublisherExclude(
}

publisher_info->excluded = exclude;
ledger_->SetPublisherInfo(std::move(publisher_info));
ledger_->SetPublisherInfo(publisher_info->Clone());
if (exclude == ledger::PUBLISHER_EXCLUDE::EXCLUDED) {
ledger_->DeleteActivityInfo(
publisher_info->id,
Expand Down

0 comments on commit 0c3a355

Please sign in to comment.