@@ -169,9 +169,12 @@ export default class Zemu {
169169 await Zemu . containerPool . initialize ( config || defaultConfig )
170170 Zemu . poolInitialized = true
171171 } catch ( error ) {
172- console . warn ( 'Container pool initialization failed, falling back to individual containers:' , error )
172+ console . warn (
173+ `Container pool initialization failed: ${ error instanceof Error ? error . message : error } . Falling back to individual containers.`
174+ )
173175 Zemu . poolEnabled = false
174176 Zemu . containerPool = null
177+ Zemu . poolInitialized = false
175178 }
176179 }
177180
@@ -925,9 +928,9 @@ export default class Zemu {
925928 const nav : INavElement = {
926929 type : touchDevice ? ActionKind . Touch : ActionKind . RightClick ,
927930 button : touchDevice
928- ? ( imageIndex === 1 && isBlindSigning
931+ ? imageIndex === 1 && isBlindSigning
929932 ? getTouchElement ( this . startOptions . model , ButtonKind . RejectButton )
930- : getTouchElement ( this . startOptions . model , ButtonKind . SwipeContinueButton ) )
933+ : getTouchElement ( this . startOptions . model , ButtonKind . SwipeContinueButton )
931934 : dummyButton , // For non-touch devices, use dummy button since action type determines behavior
932935 }
933936 await this . runAction ( nav , filename , waitForScreenUpdate , true )
@@ -937,9 +940,7 @@ export default class Zemu {
937940 if ( ! runLastAction ) return imageIndex // do not run last action if requested
938941
939942 // Approve can be performed with Tap or PressAndHold
940- const approveButton = touchDevice
941- ? getTouchElement ( this . startOptions . model , this . startOptions . approveAction )
942- : dummyButton
943+ const approveButton = touchDevice ? getTouchElement ( this . startOptions . model , this . startOptions . approveAction ) : dummyButton
943944
944945 if ( this . startOptions . approveAction === ButtonKind . DynamicTapButton ) {
945946 const events = await this . getEvents ( )
0 commit comments