diff options
author | Jack Massey <jacknmassey@gmail.com> | 2019-09-17 09:39:59 +1000 |
---|---|---|
committer | Jack Massey <jacknmassey@gmail.com> | 2019-09-17 09:39:59 +1000 |
commit | 75a0474c8dba8763f789fea45bf8ef9df90c6db3 (patch) | |
tree | 71ed5d6ff3e82df1f71c81acfb8c3801a1acd84c | |
parent | 2887ff25876c8e67bc96cc07f78a1b02743f2fa2 (diff) | |
download | gnome-settings-daemon-75a0474c8dba8763f789fea45bf8ef9df90c6db3.tar.gz |
smartcard: Change timeout on spurious event error
The 0.5s timeout was probably based on the fact that the
SECMOD_WaitForAnyTokenEvent call was blocking, it doesn't make sense to
have the timeout on the error case less than the timeout on the normal
case.
-rw-r--r-- | plugins/smartcard/gsd-smartcard-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/smartcard/gsd-smartcard-manager.c b/plugins/smartcard/gsd-smartcard-manager.c index a92b7196..d43d5c79 100644 --- a/plugins/smartcard/gsd-smartcard-manager.c +++ b/plugins/smartcard/gsd-smartcard-manager.c @@ -232,7 +232,7 @@ watch_one_event_from_driver (GsdSmartcardManager *self, g_warning ("Got potentially spurious smartcard event error: %x.", error_code); - g_usleep (0.5 * G_USEC_PER_SEC); + g_usleep (1 * G_USEC_PER_SEC); return TRUE; } operation->number_of_consecutive_errors = 0; |