[gnome-settings-daemon/gnome-3-34] smartcard: Change timeout on spurious event error
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-34] smartcard: Change timeout on spurious event error
- Date: Tue, 17 Sep 2019 15:05:59 +0000 (UTC)
commit 2ba309541a9d65d2aae87414b69441a7c999ce8a
Author: Jack Massey <jacknmassey gmail com>
Date: Tue Sep 17 09:39:59 2019 +1000
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.
(cherry picked from commit 75a0474c8dba8763f789fea45bf8ef9df90c6db3)
plugins/smartcard/gsd-smartcard-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]