File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -412,13 +412,13 @@ void StatusManager::bootNotificationProcess()
412412 boot_req.imsi .value ().assign (m_stack_config.imsi ());
413413 boot_req.meterSerialNumber .value ().assign (m_stack_config.meterSerialNumber ());
414414
415+ m_registration_status = RegistrationStatus::Rejected;
415416 // Send BootNotificationRequest
416417 BootNotificationConf boot_conf;
417418 CallResult result = m_msg_sender.call (BOOT_NOTIFICATION_ACTION, boot_req, boot_conf);
418419 if (result == CallResult::Ok)
419- {
420- m_registration_status = boot_conf.status ;
421- if (m_registration_status == RegistrationStatus::Accepted)
420+ {
421+ if (boot_conf.status == RegistrationStatus::Accepted)
422422 {
423423 // Send first status notifications
424424 for (unsigned int id = 0 ; id <= m_connectors.getCount (); id++)
@@ -437,6 +437,7 @@ void StatusManager::bootNotificationProcess()
437437 m_boot_notification_timer.start (std::chrono::seconds (boot_conf.interval ), true );
438438 }
439439
440+ m_registration_status = boot_conf.status ;
440441 std::string registration_status = RegistrationStatusHelper.toString (m_registration_status);
441442 LOG_INFO << " Registration status : " << registration_status;
442443
You can’t perform that action at this time.
0 commit comments