Skip to content

Commit

Permalink
Fix MSVC warning in NodeService::networkIsReady
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron authored and AJenbo committed Dec 16, 2023
1 parent bd4bd4c commit db7b642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ void NodeService::releaseLock() const
bool NodeService::networkIsReady(uint64_t net_id) const
{
if (! net_id) {
return ZTS_ERR_ARG;
return false;
}
Mutex::Lock _l(_nets_m);
std::map<uint64_t, NetworkState>::const_iterator n(_nets.find(net_id));
Expand Down

0 comments on commit db7b642

Please sign in to comment.