We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ee2dd6 commit 91abcb9Copy full SHA for 91abcb9
src/daemon.js
@@ -508,6 +508,11 @@ export class DeviceDaemon extends EventEmitter {
508
// ----------------------------------------------------------------
509
510
async _startPairing() {
511
+ // Guard: don't create a second pairing session if one is already active
512
+ if (this._state === 'pairing' && this._pairingWizard) {
513
+ return;
514
+ }
515
+
516
this._state = 'pairing';
517
518
this._pairingWizard = new PairingWizard({
0 commit comments