Skip to content

Commit 776d6e9

Browse files
author
Daisuke Baba
committed
Avoid to adding extra listeners
1 parent 77bce22 commit 776d6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic-ble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ export default function(RED) {
304304
}, []).map((c) => toCharacteristic(c));
305305
});
306306
});
307+
peripheral.connect(); // peripheral.state => connecting
307308
}
308-
peripheral.connect(); // peripheral.state => connecting
309309
connecting = true;
310310
break;
311311
}

0 commit comments

Comments
 (0)