service/pam: send completed messages after destroying pam conv

Allows context to be restarted in a complete handler.
This commit is contained in:
outfoxxed 2024-06-17 20:30:23 -07:00
parent 7e5d128a91
commit b5c8774a79
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 2 additions and 2 deletions

View File

@ -201,14 +201,14 @@ bool PamContext::messageIsError() const { return this->mMessageIsError; }
bool PamContext::isResponseRequired() const { return this->mIsResponseRequired; }
void PamContext::onCompleted(PamResult::Enum result) {
emit this->completed(result);
this->abortConversation();
emit this->completed(result);
}
void PamContext::onError(PamError::Enum error) {
this->abortConversation();
emit this->error(error);
emit this->completed(PamResult::Error);
this->abortConversation();
}
void PamContext::onMessage(