forked from quickshell/quickshell
		
	service/pam: send completed messages after destroying pam conv
Allows context to be restarted in a complete handler.
This commit is contained in:
		
							parent
							
								
									7e5d128a91
								
							
						
					
					
						commit
						b5c8774a79
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -201,14 +201,14 @@ bool PamContext::messageIsError() const { return this->mMessageIsError; }
 | 
				
			||||||
bool PamContext::isResponseRequired() const { return this->mIsResponseRequired; }
 | 
					bool PamContext::isResponseRequired() const { return this->mIsResponseRequired; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void PamContext::onCompleted(PamResult::Enum result) {
 | 
					void PamContext::onCompleted(PamResult::Enum result) {
 | 
				
			||||||
	emit this->completed(result);
 | 
					 | 
				
			||||||
	this->abortConversation();
 | 
						this->abortConversation();
 | 
				
			||||||
 | 
						emit this->completed(result);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void PamContext::onError(PamError::Enum error) {
 | 
					void PamContext::onError(PamError::Enum error) {
 | 
				
			||||||
 | 
						this->abortConversation();
 | 
				
			||||||
	emit this->error(error);
 | 
						emit this->error(error);
 | 
				
			||||||
	emit this->completed(PamResult::Error);
 | 
						emit this->completed(PamResult::Error);
 | 
				
			||||||
	this->abortConversation();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void PamContext::onMessage(
 | 
					void PamContext::onMessage(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue