From 904e50e8e9e48f1c5a350e21c257cd788c515c84 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 29 Apr 2021 19:41:13 -0700 Subject: [PATCH] Fix bug in network transport readiness check function --- src/NodeService.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NodeService.cpp b/src/NodeService.cpp index 80e2889..8bf3042 100644 --- a/src/NodeService.cpp +++ b/src/NodeService.cpp @@ -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