Skip to content

Commit 5e18606

Browse files
Apply suggestion from @microbit-matt-hillsdon
1 parent 5d2c7b8 commit 5e18606

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/usb.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ class MicrobitWebUSBConnectionImpl
161161
if (!this.unloading && this.status === ConnectionStatus.CONNECTED) {
162162
if (!this.flashing) {
163163
this.log("Pausing connection for hidden tab");
164-
// Pass PAUSED as the final status to transition directly without
165-
// firing DISCONNECTED first.
164+
// Transition to PAUSED not DISCONNECTED
166165
this.disconnect(false, ConnectionStatus.PAUSED);
167166
} else {
168167
this.log("Scheduling disconnect of hidden tab for after flash");

0 commit comments

Comments
 (0)