add timeout to fix #444

This commit is contained in:
Philipp Crocoll
2018-07-09 10:22:44 +02:00
parent 012af35e87
commit 8ec17ce9a6

View File

@@ -61,6 +61,7 @@ namespace keepass2android
try
{
isoTag.Connect();
isoTag.Timeout = 30000;
byte[] resp = isoTag.Transceive(selectCommand);
int length = resp.Length;
if (resp[length - 2] == (byte)0x90 && resp[length - 1] == 0x00)