mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix possible error, dead lock
This commit is contained in:
parent
20501972eb
commit
cb4f176113
@ -378,12 +378,13 @@ bool User::setNewPassword(const std::string& newPassword)
|
||||
mCreateCryptoKeyTask = new UserCreateCryptoKey(this, newPassword, ServerConfig::g_CPUScheduler);
|
||||
mCreateCryptoKeyTask->scheduleTask(mCreateCryptoKeyTask);
|
||||
unlock();
|
||||
|
||||
duplicate();
|
||||
|
||||
UniLib::controller::TaskPtr savePassword(new UserWriteCryptoKeyHashIntoDB(this, 1));
|
||||
savePassword->setParentTaskPtrInArray(mCreateCryptoKeyTask, 0);
|
||||
savePassword->scheduleTask(savePassword);
|
||||
|
||||
unlock();
|
||||
|
||||
printf("[User::setNewPassword] timeUsed: %s\n", timeUsed.string().data());
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user