summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-02-15 05:58:19 +0000
committerSadie Powell <sadie@witchery.services>2020-02-15 06:25:12 +0000
commit24f1224f770eb8f6a075d3c8bd083545c17bba10 (patch)
tree2955e3c0e789f8b3fd872a2e52d1fa3dda4b8656 /src/coremods
parentf9b4c280f8e7bec0c9237f9648c4fc5a77cfc468 (diff)
Add HasFd to EventHandler and switch code to use it.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp
index 5dcc994ce..326135465 100644
--- a/src/coremods/core_dns.cpp
+++ b/src/coremods/core_dns.cpp
@@ -703,7 +703,7 @@ class MyManager : public Manager, public Timer, public EventHandler
void Rehash(const std::string& dnsserver, std::string sourceaddr, unsigned int sourceport)
{
- if (this->GetFd() > -1)
+ if (this->HasFd())
{
SocketEngine::Shutdown(this, 2);
SocketEngine::Close(this);