diff --git a/wallet/core/contracts/shaders_manager.cpp b/wallet/core/contracts/shaders_manager.cpp index 7f1bed55b..678469aef 100644 --- a/wallet/core/contracts/shaders_manager.cpp +++ b/wallet/core/contracts/shaders_manager.cpp @@ -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(); }); }