From f300e12a793d59deb1a369713384eaabfa39b3e6 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 30 Dec 2016 13:17:49 +0900 Subject: scd: Fix card removal monitor. * scd/app.c (app_reset): Call send_client_notification with REMOVAL. (scd_update_reader_status_file): Likewise. * scd/command.c (send_client_notifications): Distinguish removal. Signed-off-by: NIIBE Yutaka --- scd/app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scd/app.c') diff --git a/scd/app.c b/scd/app.c index fa0547567..39910d2f9 100644 --- a/scd/app.c +++ b/scd/app.c @@ -161,7 +161,7 @@ app_reset (app_t app, ctrl_t ctrl, int send_reset) err = gpg_error (GPG_ERR_CARD_RESET); /* Release the same application which is used by other sessions. */ - send_client_notifications (app); + send_client_notifications (app, 1); } else { @@ -1035,7 +1035,7 @@ scd_update_reader_status_file (void) if (a->card_status != status) { report_change (a->slot, a->card_status, status); - send_client_notifications (a); + send_client_notifications (a, status == 0); if (status == 0) { -- cgit v1.2.3