File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/trezor-user-env-link/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ export const DEFAULT_BRIDGE_VERSION = '2.0.33';
9393
9494// There's an ongoing problem with debug link & button requests race conditions
9595// Adding a delay to workaround this issue temporarily
96- const EMU_RACE_CONDITION_WORKAROUND_DELAY = 50 ;
96+ // https://github.com/trezor/trezor-suite/issues/23270
97+ const EMU_RACE_CONDITION_WORKAROUND_DELAY = 200 ;
9798
9899export class TrezorUserEnvLinkClass extends TypedEmitter < WebsocketClientEvents > {
99100 private client : WebsocketClient ;
@@ -321,6 +322,7 @@ export class TrezorUserEnvLinkClass extends TypedEmitter<WebsocketClientEvents>
321322 return null ;
322323 }
323324 async selectNumOfWordsEmu ( num : number ) {
325+ await new Promise ( resolve => setTimeout ( resolve , EMU_RACE_CONDITION_WORKAROUND_DELAY * 2 ) ) ;
324326 await this . client . send ( { type : 'emulator-select-num-of-words' , num } ) ;
325327
326328 return null ;
You can’t perform that action at this time.
0 commit comments