summaryrefslogtreecommitdiff
path: root/louloulibs/network/poller.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-03 21:12:16 +0200
committerlouiz’ <louiz@louiz.org>2016-10-03 21:12:16 +0200
commit45aebb8d8a3088058ae65b154496ce1fb2e3d94d (patch)
treedae462db64647b47960fdd339f973e98d4a646bc /louloulibs/network/poller.cpp
parentb29225601a475efe7f28fe7002eba72e70f3272b (diff)
downloadbiboumi-45aebb8d8a3088058ae65b154496ce1fb2e3d94d.tar.gz
biboumi-45aebb8d8a3088058ae65b154496ce1fb2e3d94d.tar.bz2
biboumi-45aebb8d8a3088058ae65b154496ce1fb2e3d94d.tar.xz
biboumi-45aebb8d8a3088058ae65b154496ce1fb2e3d94d.zip
Avoid an exception due to some bad logic in the DNS resolution mechanic
fix #3207
Diffstat (limited to 'louloulibs/network/poller.cpp')
-rw-r--r--louloulibs/network/poller.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/louloulibs/network/poller.cpp b/louloulibs/network/poller.cpp
index 8a6fd97..d341bb5 100644
--- a/louloulibs/network/poller.cpp
+++ b/louloulibs/network/poller.cpp
@@ -226,3 +226,8 @@ size_t Poller::size() const
{
return this->socket_handlers.size();
}
+
+bool Poller::is_managing_socket(const socket_t socket) const
+{
+ return (this->socket_handlers.find(socket) != this->socket_handlers.end());
+}