File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/components/intercept/config Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,17 @@ class FridaConfig extends React.Component<{
306
306
} ) ;
307
307
308
308
this . setHostProgress ( hostId , 100 ) ;
309
- await delay ( 10 ) ; // Tiny delay purely for nice UI purposes
310
- this . viewHostTargets ( hostId ) ;
309
+ await delay ( 10 ) ; // Tiny delay, purely for nice UI purposes
310
+
311
+ // When launch succeeds, it guarantees that the current state is now available.
312
+ // We directly check that, rather than waiting for the next metadata update:
313
+ runInAction ( ( ) => {
314
+ this . props . interceptor . metadata ! . hosts [ hostId ] . state = 'available' ;
315
+ } ) ;
316
+
317
+ if ( Object . values ( this . hostProgress ) . length === 1 ) { // Don't jump if setting up multiple devices
318
+ this . viewHostTargets ( hostId ) ;
319
+ }
311
320
} finally {
312
321
clearInterval ( interval ) ;
313
322
this . setHostProgress ( hostId , undefined ) ;
You can’t perform that action at this time.
0 commit comments