Skip to content

Commit

Permalink
allow same ip for local
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed May 3, 2024
1 parent 108a862 commit ddcb280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service/canvas_client_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ class CanvasClientService {
final devices = <CanvasDevice>[];
final discoverDevices = await _mdnsService.findCanvas();
final localDevices = await _db.canvasDeviceDao.getCanvasDevices();
localDevices.removeWhere((l) => discoverDevices.any((d) => d.ip == l.ip));
devices
..addAll(discoverDevices)
..addAll(localDevices)
..unique((element) => element.ip);
..addAll(localDevices);
return devices;
}

Expand Down

0 comments on commit ddcb280

Please sign in to comment.