transport/pcsc: cosmetic: reuse the existing code of PcscSimLink

Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf
This commit is contained in:
Vadim Yanitskiy
2020-02-26 22:18:32 +07:00
parent 7ba2428de5
commit 41c22176e4

View File

@@ -63,11 +63,8 @@ class PcscSimLink(LinkBase):
self._con.disconnect()
def reset_card(self):
self._con.disconnect()
try:
self._con.connect()
except NoCardException:
raise NoCardError()
self.disconnect()
self.connect()
return 1
def send_apdu_raw(self, pdu):