|
@@ -242,13 +242,19 @@ internal partial class ProfileHandler
|
|
|
int.TryParse(configValue, out heartbeat_interval);
|
|
|
}
|
|
|
|
|
|
- session.IsPending = false;
|
|
|
-
|
|
|
- var confirm = new BootNotificationConfirmation()
|
|
|
+ if (session.IsPending == true)
|
|
|
+ {
|
|
|
+ session.IsPending = false;
|
|
|
+ }
|
|
|
+ if (session.IsPending == null)
|
|
|
{
|
|
|
+ session.IsPending = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ var confirm = new BootNotificationConfirmation() {
|
|
|
currentTime = DateTime.UtcNow,
|
|
|
- interval = session.IsPending ? 5 : heartbeat_interval,
|
|
|
- status = session.IsPending ? RegistrationStatus.Pending : RegistrationStatus.Accepted
|
|
|
+ interval = session.IsPending.Value ? 5 : heartbeat_interval,
|
|
|
+ status = session.IsPending.Value ? RegistrationStatus.Pending : RegistrationStatus.Accepted
|
|
|
};
|
|
|
|
|
|
result.Message = confirm;
|