mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 15:59:27 -05:00
device_trezor: add redundant check
This commit is contained in:
parent
34f942867f
commit
8d03bb688e
@ -165,7 +165,7 @@ namespace trezor {
|
|||||||
|
|
||||||
// Scoped session closer
|
// Scoped session closer
|
||||||
BOOST_SCOPE_EXIT_ALL(&, this) {
|
BOOST_SCOPE_EXIT_ALL(&, this) {
|
||||||
if (open_session){
|
if (open_session && this->get_transport()){
|
||||||
this->get_transport()->close();
|
this->get_transport()->close();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user