From ba864816eb239a377f7ac0f3fe27a73e004f6e80 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 29 Jul 2022 13:47:59 +0200 Subject: gs-auth-pam: fix failed to remove the event source '(GIOFunc) gs_auth_loop_quit' returns FALSE, closing the source, so there is no need to call 'g_source_remove' when !thread_done --- src/gs-auth-pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gs-auth-pam.c b/src/gs-auth-pam.c index 0420b9e..8927157 100644 --- a/src/gs-auth-pam.c +++ b/src/gs-auth-pam.c @@ -669,7 +669,7 @@ gs_auth_pam_verify_user (pam_handle_t *handle, auth_status = GPOINTER_TO_INT (g_thread_join (auth_thread)); out: - if (watch_id != 0) + if (watch_id != 0 && !thread_done) { g_source_remove (watch_id); watch_id = 0; -- cgit v1.2.1