Skip to content

Commit fb65be3

Browse files
committed
Stop scanning
1 parent b340ef2 commit fb65be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DroneConnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class DroneConnection extends EventEmitter {
102102
}
103103

104104
if (['connecting', 'connected'].includes(peripheral.state)) {
105-
Logger.info("Connected")
105+
await this.noble.stopScanningAsync();
106106
} else {
107107
Logger.info("Something went wrong: " + peripheral.state)
108108

0 commit comments

Comments
 (0)