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 f78ffc4 commit af68546
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/src/system_network_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,12 @@ int NetworkManager::enableInterface(if_t iface) {
}

int NetworkManager::disableInterface(if_t iface, network_disconnect_reason reason) {
// XXX: This method is only called on platforms with multiple network interfaces
// if there are multiple active network interfaces, so 'reason' will always contain
// NETWORK_DISCONNECT_REASON_USER. While disabling a non-primary network interface
// will not in fact result in a logical disconnect, it might still be a good idea
// to log a user request here. We can revise this behavior later.
NetworkDiagnostics::instance()->disconnectionReason(reason);
// Special case - disable all
if (iface == nullptr) {
populateInterfaceRuntimeState(false);
Expand Down

0 comments on commit af68546

Please sign in to comment.