mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
device_trezor: add redundant check
This commit is contained in:
parent
c6e1d7bcdf
commit
d8137dc523
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue