diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-13 14:29:14 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-07-20 16:26:23 +0200 |
commit | b4bac556791b5bb8aa118d4c1fed42c3fe45550c (patch) | |
tree | 2e254ac7dbd624be6afc4bb90c1143911208a119 /src/netbase.cpp | |
parent | 5db7d2ca0aa51ff25f97bf21ce0cbc9e6b741cbd (diff) |
net: convert standalone IsSelectableSocket() to Sock::IsSelectable()
This makes the callers mockable.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 2 |
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; } |