ruffk / ZwiftActivityMonitor

This project allows Zwift users to monitor their moving average power and FTP in real-time. It also provides valuable metrics to the rider such as average and normalized power (NP), intensity factor (IF), and training stress score (TSS). For the racer and time-trialist, there's also the ability to configure distance based splits with optional goals.
MIT License
43 stars 11 forks source link

Monitor exception #13

Closed kksmed closed 2 years ago

kksmed commented 2 years ago

When using an external wi-fi adaptor, ZAM will not start afterwards without the adaptor connected as the following exception is thrown: System.ArgumentException: Interface Wi-Fi 2 not found at ZwiftPacketMonitor.Monitor.StartCaptureAsync(String networkInterface, CancellationToken cancellationToken) at ZwiftActivityMonitorV2.ZPMonitorService.StartMonitorAsync(CancellationToken cancellationToken) in C:\src\ZAM\ZwiftActivityMonitorV2\src\ZPMonitorService.cs:line 693 at ZwiftActivityMonitorV2.ZPMonitorService.<StartMonitor>b__82_0() in C:\src\ZAM\ZwiftActivityMonitorV2\src\ZPMonitorService.cs:line 137

Having the exception just logged and not propagated to shutdown the entire program will fix this issue.