mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
jamiaccount: capture accountId to avoid bad_weak_ptr
Change-Id: I9321ffb6e409750609a7e7744bfe0f7437d5ffd3
This commit is contained in:
@ -1028,8 +1028,8 @@ JamiAccount::loadAccount(const std::string& archive_password, const std::string&
|
|||||||
{
|
{
|
||||||
JAMI_WARN("Auth error: %d %s", (int)error, message.c_str());
|
JAMI_WARN("Auth error: %d %s", (int)error, message.c_str());
|
||||||
setRegistrationState(RegistrationState::ERROR_GENERIC);
|
setRegistrationState(RegistrationState::ERROR_GENERIC);
|
||||||
runOnMainThread([w = weak()] {
|
runOnMainThread([id = getAccountID()] {
|
||||||
Manager::instance().removeAccount(w.lock()->getAccountID(), true);
|
Manager::instance().removeAccount(id, true);
|
||||||
});
|
});
|
||||||
}, std::move(callbacks));
|
}, std::move(callbacks));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user