diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py index 9dbfd5cac..03aa61f3d 100644 --- a/electrum/plugins/trezor/trezor.py +++ b/electrum/plugins/trezor/trezor.py @@ -160,6 +160,11 @@ class TrezorPlugin(HW_PluginBase): @runs_in_hwd_thread def enumerate(self): + # Set lower timeout for UDP enumeration (used for emulator). + # The default of 10 sec is very long, and I often hit it for some reason on Windows (no emu running), + # blocking the whole enumeration. + from trezorlib.transport.udp import UdpTransport + trezorlib.transport.udp.SOCKET_TIMEOUT = 1 # If there is a bridge, prefer that. # On Windows, the bridge runs as Admin (and Electrum usually does not), # so the bridge has better chances of finding devices. see #5420