Skip to content

Commit

Permalink
Merge pull request DigiExam#2 from gleroi/master
Browse files Browse the repository at this point in the history
AccessPoint.IsConnected: report IsConnected if current network has sa…
  • Loading branch information
CodeBeast357 authored May 15, 2017
2 parents 06d5c05 + 04a7681 commit 20a7a34
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 20a7a34

Please sign in to comment.