From b5c8774a797bf2f18fea7fac6ebd4c0da37d7a13 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 17 Jun 2024 20:30:23 -0700 Subject: [PATCH] service/pam: send completed messages after destroying pam conv Allows context to be restarted in a complete handler. --- src/services/pam/qml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/pam/qml.cpp b/src/services/pam/qml.cpp index be34410..ee8b45f 100644 --- a/src/services/pam/qml.cpp +++ b/src/services/pam/qml.cpp @@ -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(