Skip to content

Commit

Permalink
fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Dec 6, 2023
1 parent 494fdce commit 4ec35e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/core/contracts/shaders_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ namespace beam::wallet {
StartRun(method);
});

m_Wallet.DoInSyncedWallet([this]()
m_Wallet.DoInSyncedWallet([wp = std::weak_ptr(_startEvent)]()
{
_startEvent->post();
if (auto sp = wp.lock())
sp->post();
});
}

Expand Down

0 comments on commit 4ec35e1

Please sign in to comment.