Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Oct 29, 2020
1 parent 792c4fa commit f78ffc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/src/system_network_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ void NetworkManager::transition(State state) {
case State::IFACE_DOWN: {
LED_SIGNAL_START(NETWORK_ON, BACKGROUND);
NetworkDiagnostics::instance()->status(NetworkDiagnostics::DISCONNECTED);
NetworkDiagnostics::instance()->resetConnectionAttempts();
if (state_ == State::IFACE_REQUEST_DOWN) {
system_notify_event(network_status, network_status_disconnected);
} else if (state_ == State::DISABLED) {
Expand All @@ -395,6 +394,9 @@ void NetworkManager::transition(State state) {
break;
}
case State::IFACE_REQUEST_DOWN: {
if (state_ == State::IP_CONFIGURED) {
NetworkDiagnostics::instance()->resetConnectionAttempts();
}
system_notify_event(network_status, network_status_disconnecting);
NetworkDiagnostics::instance()->status(NetworkDiagnostics::DISCONNECTING);
break;
Expand Down

0 comments on commit f78ffc4

Please sign in to comment.