aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-04-13 14:29:14 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-07-20 16:26:23 +0200
commitb4bac556791b5bb8aa118d4c1fed42c3fe45550c (patch)
tree2e254ac7dbd624be6afc4bb90c1143911208a119 /src/netbase.cpp
parent5db7d2ca0aa51ff25f97bf21ce0cbc9e6b741cbd (diff)
net: convert standalone IsSelectableSocket() to Sock::IsSelectable()
This makes the callers mockable.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 4b8d2f8d0c..22cf4415c8 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -503,7 +503,7 @@ std::unique_ptr<Sock> CreateSockTCP(const CService& address_family)
// Ensure that waiting for I/O on this socket won't result in undefined
// behavior.
- if (!IsSelectableSocket(sock->Get())) {
+ if (!sock->IsSelectable()) {
LogPrintf("Cannot create connection: non-selectable socket created (fd >= FD_SETSIZE ?)\n");
return nullptr;
}