-
Notifications
You must be signed in to change notification settings - Fork 0
fix for updating credential #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10 +/- ##
=======================================
Coverage 89.13% 89.13%
=======================================
Files 7 7
Lines 709 709
Branches 89 89
=======================================
Hits 632 632
Misses 77 77 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Memory usage change @ 6f71366
Click for full report table
Click for full report CSV
|
6f71366
to
1b50d52
Compare
Memory usage change @ 1b50d52
Click for full report table
Click for full report CSV
|
_agentsManager->update(); | ||
bool updatedConfigInprogress = _agentsManager->isConfigInProgress(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool updatedConfigInprogress = _agentsManager->isConfigInProgress(); | |
const bool updatedConfigInprogress = _agentsManager->isConfigInProgress(); |
if (_agentsManager->isConfigInProgress() && !configInprogress) { | ||
scanNetworkOptions(); | ||
return NetworkConfiguratorStates::UPDATING_CONFIG; | ||
if(_configInProgress != updatedConfigInprogress) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(_configInProgress != updatedConfigInprogress) { | |
if (_configInProgress != updatedConfigInprogress) { |
return NetworkConfiguratorStates::UPDATING_CONFIG; | ||
if(_configInProgress != updatedConfigInprogress) { | ||
_configInProgress = updatedConfigInprogress; | ||
if(_configInProgress) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(_configInProgress) { | |
if (_configInProgress) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only few suggestions to keep the style of the file
This PR fix the problem:
If the
AgentsManagerClass::update()
is called also outside the NetworkConfigurator class and the NetworkConfigurator is in theCONFIGURED
state, the NetworkConfigurator is no more able to detect when a new peer (Mobile app or FE) is connecting for changing credentials and, consequentially, to move to the stateUPDATING_CONFIG
when needed