diff options
author | NIIBE Yutaka <[email protected]> | 2016-12-30 04:17:49 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-12-30 04:17:49 +0000 |
commit | f300e12a793d59deb1a369713384eaabfa39b3e6 (patch) | |
tree | 9c60f5f566157604120e82b3cf26ee71e871cfd7 /scd/app.c | |
parent | scd: Improve internal CCID driver. (diff) | |
download | gnupg-f300e12a793d59deb1a369713384eaabfa39b3e6.tar.gz gnupg-f300e12a793d59deb1a369713384eaabfa39b3e6.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | scd/app.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |