Fix login session persistence. It is handled when the card reader disconnects, instead of when applet is selected (only the first time).

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-03-06 01:50:34 +01:00
parent bf2624cd88
commit e36c80761e
2 changed files with 13 additions and 2 deletions

View File

@@ -1567,8 +1567,11 @@ void card_thread()
goto done;
#endif
}
else if (m == EV_EXIT)
else if (m == EV_EXIT) {
if (current_app && current_app->unload)
current_app->unload();
break;
}
process_apdu();