Skip to content

Commit c442253

Browse files
committed
fix: do not assume the HMR status timeouts as errors because they could be caused by a breakpoint and we will kill the debug session
1 parent f8f3413 commit c442253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/controllers/run-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ export class RunController extends EventEmitter implements IRunController {
412412

413413
if (!liveSyncResultInfo.didRecover && isInHMRMode) {
414414
const status = await this.$hmrStatusService.getHmrStatus(device.deviceInfo.identifier, data.hmrData.hash);
415-
// error or timeout
416-
if (status !== HmrConstants.HMR_SUCCESS_STATUS) {
415+
// the timeout is assumed OK as the app could be blocked on a breakpoint
416+
if (status === HmrConstants.HMR_ERROR_STATUS) {
417417
await fullSyncAction();
418418
liveSyncResultInfo.isFullSync = true;
419419
await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor);

0 commit comments

Comments
 (0)