Skip to content

Commit 5f1baca

Browse files
authored
need to start the simulator after create to avoid race (#10349)
* need to start the simulator after create to avoid race * remove mistaken add of submodule
1 parent e4d5e3e commit 5f1baca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pxtsim/simdriver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ namespace pxsim {
810810
let wrapper = this.createFrame();
811811
this.container.appendChild(wrapper);
812812
frame = wrapper.firstElementChild as HTMLIFrameElement;
813-
} else // reuse simulator
814-
this.startFrame(frame);
813+
}
814+
this.startFrame(frame);
815815

816816
this.debuggingFrame = frame.id;
817817

0 commit comments

Comments
 (0)