Skip to content

Commit

Permalink
Fix background scanning behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Oct 12, 2021
1 parent 37adfe6 commit e988881
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ protected void removeUsbSerialDiscoveryParticipant(UsbSerialDiscoveryParticipant
protected void addUsbSerialDiscovery(UsbSerialDiscovery usbSerialDiscovery) {
usbSerialDiscoveries.add(usbSerialDiscovery);
usbSerialDiscovery.registerDiscoveryListener(this);
if (isBackgroundDiscoveryEnabled()) {
usbSerialDiscovery.startBackgroundScanning();
}
}

protected synchronized void removeUsbSerialDiscovery(UsbSerialDiscovery usbSerialDiscovery) {
Expand Down

0 comments on commit e988881

Please sign in to comment.