Skip to content

Commit 9a67023

Browse files
Ignore delegate status on radio bridge disconnect
1 parent 1bcf66b commit 9a67023

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/usb-radio-bridge.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ class MicrobitRadioBridgeConnectionImpl
209209
}
210210
this.serialSessionOpen = false;
211211
this.disconnectPromise = (async () => {
212+
this.ignoreDelegateStatus = true;
212213
await this.serialSession?.dispose(true);
214+
this.ignoreDelegateStatus = false;
213215
this.disconnectPromise = undefined;
214216
})();
215217
}

0 commit comments

Comments
 (0)