summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-07-29 13:47:59 +0200
committerrbuj <[email protected]>2022-07-29 15:17:18 +0200
commitba864816eb239a377f7ac0f3fe27a73e004f6e80 (patch)
treed4ff8c321d71688c25c712ea62545775e43918ca
parent6fac017a634dd0ea893343c2f0682ddfa8bcf45e (diff)
downloadmate-screensaver-fix-20220729.tar.bz2
mate-screensaver-fix-20220729.tar.xz
gs-auth-pam: fix failed to remove the event sourcefix-20220729
'(GIOFunc) gs_auth_loop_quit' returns FALSE, closing the source, so there is no need to call 'g_source_remove' when !thread_done
-rw-r--r--src/gs-auth-pam.c2
1 files changed, 1 insertions, 1 deletions
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;