mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
cdc8d0bd93
commit
f300e12a79
3 changed files with 68 additions and 58 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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue