Skip to content

Commit

Permalink
Fix one Release too many
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Feb 15, 2024
1 parent b0ba574 commit 42308b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ void Instance::OnFinished(Status status, CharSpan debugText, WiFiScanResponseIte
}

// If drivers are failing to respond NetworkNotFound on empty results, force it for them.
bool resultsMissing = (0 == CountAndRelease(networks));
bool resultsMissing = !networks || (networks && (networks->Count() == 0));
if ((status == Status::kSuccess) && mScanningWasDirected && resultsMissing)
{
status = Status::kNetworkNotFound;
Expand Down

0 comments on commit 42308b6

Please sign in to comment.