diff --git a/SimpleWifi/AccessPoint.cs b/SimpleWifi/AccessPoint.cs index 4e24bb0..e660e7d 100644 --- a/SimpleWifi/AccessPoint.cs +++ b/SimpleWifi/AccessPoint.cs @@ -70,7 +70,7 @@ public bool IsConnected try { var a = _interface.CurrentConnection; // This prop throws exception if not connected, which forces me to this try catch. Refactor plix. - return a.profileName == _network.profileName; + return a.profileName == _network.profileName && a.isState == WlanInterfaceState.Connected; } catch {