Fix bug in network transport readiness check function

This commit is contained in:
Joseph Henry
2021-04-29 19:41:13 -07:00
parent 016b0ffc0e
commit 904e50e8e9

View File

@@ -754,9 +754,7 @@ bool NodeService::networkIsReady(uint64_t net_id) const
return false;
}
auto netState = n->second;
if (netState.config.assignedAddressCount == 0) {
return ZTS_ERR_NO_RESULT;
}
return netState.config.assignedAddressCount > 0;
}
int NodeService::addressCount(uint64_t net_id) const