Skip to content

Commit

Permalink
Set delay action time in query response if present.
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton36 committed Jan 5, 2023
1 parent 212e00d commit 10964de
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ - (void)handleQueryImageForNodeID:(NSNumber * _Nonnull)nodeID
_selectedCandidate.userConsentNeeded = _userConsentNeeded;
NSLog(@"User Consent Needed: %@", _selectedCandidate.userConsentNeeded);
}
if (_delayedActionTime && _selectedCandidate.status.integerValue == MTROtaSoftwareUpdateProviderOTAQueryStatusBusy) {
_selectedCandidate.delayedActionTime = _delayedActionTime;
} else {
_selectedCandidate.delayedActionTime = nil;
}
completion(_selectedCandidate, nil);
}

Expand Down

0 comments on commit 10964de

Please sign in to comment.