Skip to content

Commit

Permalink
AccessPoint.IsConnected: report IsConnected if current network has sa…
Browse files Browse the repository at this point in the history
…me profileName and isState is Connected
  • Loading branch information
Guillaume Leroi committed Oct 21, 2016
1 parent 6709d53 commit 04a7681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimpleWifi/AccessPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 04a7681

Please sign in to comment.