From d8137dc5231e15b04943613b5b982610c1a1dfda Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 20 Jan 2021 21:02:36 +0000 Subject: device_trezor: add redundant check --- src/device_trezor/device_trezor_base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/device_trezor/device_trezor_base.hpp b/src/device_trezor/device_trezor_base.hpp index 4db8f0c8e..0162b23df 100644 --- a/src/device_trezor/device_trezor_base.hpp +++ b/src/device_trezor/device_trezor_base.hpp @@ -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(); } }; -- cgit v1.2.3