File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,6 @@ export class RunController extends EventEmitter implements IRunController {
73
73
const { projectDir, deviceIdentifiers, stopOptions } = data ;
74
74
const liveSyncProcessInfo = this . $liveSyncProcessDataService . getPersistedData ( projectDir ) ;
75
75
if ( liveSyncProcessInfo && ! liveSyncProcessInfo . isStopped ) {
76
- if ( this . prepareReadyEventHandler ) {
77
- this . removeListener ( PREPARE_READY_EVENT_NAME , this . prepareReadyEventHandler ) ;
78
- this . prepareReadyEventHandler = null ;
79
- }
80
76
81
77
// In case we are coming from error during livesync, the current action is the one that erred (but we are still executing it),
82
78
// so we cannot await it as this will cause infinite loop.
@@ -114,6 +110,11 @@ export class RunController extends EventEmitter implements IRunController {
114
110
115
111
liveSyncProcessInfo . deviceDescriptors = [ ] ;
116
112
113
+ if ( this . prepareReadyEventHandler ) {
114
+ this . removeListener ( PREPARE_READY_EVENT_NAME , this . prepareReadyEventHandler ) ;
115
+ this . prepareReadyEventHandler = null ;
116
+ }
117
+
117
118
const projectData = this . $projectDataService . getProjectData ( projectDir ) ;
118
119
await this . $hooksService . executeAfterHooks ( 'watch' , {
119
120
hookArgs : {
You can’t perform that action at this time.
0 commit comments