scd: Fix RESET command handling.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 15 Feb 2017 09:23:01 +0000 (18:23 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 15 Feb 2017 09:23:01 +0000 (18:23 +0900)
commite2792813a55e091c51be7b1b089a71beb6466f1d
tree3f406f9c06d05f489069b1d0b4b3f49bea38e912
parentb456e5be91dc064fc9509ea86edab113721ed299
scd: Fix RESET command handling.

* scd/app.c (release_application_internal): Remove.
(release_application): Merge release_application_internal.
(app_reset): Kick the loop and let close the reader.  Sleep is
required here to wait closing.
(scd_update_reader_status_file): When APP is no use, close it.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app.c