device_trezor: add redundant check

remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
anon 3 years ago committed by selsta
parent c6e1d7bcdf
commit d8137dc523

@ -165,7 +165,7 @@ namespace trezor {
// Scoped session closer
BOOST_SCOPE_EXIT_ALL(&, this) {
if (open_session){
if (open_session && this->get_transport()){
this->get_transport()->close();
}
};

Loading…
Cancel
Save