From 27630c472b10e567b1489ba21aef652049ed5ca3 Mon Sep 17 00:00:00 2001 From: Diego Date: Fri, 23 Aug 2024 10:10:41 +0200 Subject: [PATCH] add comment --- .../src/main/java/com/fidesmo/fdsm/ServiceDeliverySession.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/java/com/fidesmo/fdsm/ServiceDeliverySession.java b/library/src/main/java/com/fidesmo/fdsm/ServiceDeliverySession.java index 65c3f1e..4a19625 100644 --- a/library/src/main/java/com/fidesmo/fdsm/ServiceDeliverySession.java +++ b/library/src/main/java/com/fidesmo/fdsm/ServiceDeliverySession.java @@ -105,6 +105,7 @@ public DeliveryResult call() throws FDSMException { public DeliveryResult deliver(BIBO bibo, String appId, String serviceId) throws IOException, UnsupportedCallbackException { APDUBIBO apduBibo = new APDUBIBO(bibo); + //Reset after checking card info to avoid leaving FPA selected, which prevents some services to be run. card.selectEmpty(apduBibo); // Address #4 JsonNode deviceInfo = client.rpc(client.getURI(FidesmoApiClient.DEVICES_URL, HexUtils.bin2hex(card.getCIN()), card.getBatchId()));