device_trezor: add redundant check

release-v0.10.0.3
anon 3 years ago committed by selsta
parent 34f942867f
commit 8d03bb688e

@ -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