mirror of
https://codeberg.org/wownero/wownero.git
synced 2026-10-30 06:48:34 +01:00
device_trezor: add redundant check
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user