From 56bfff5a57f8ba971241b0ea035806c7574f54a3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 15 Jul 2018 21:35:14 +0200 Subject: event/ServerSocket: add method IsEmpty() --- src/event/ServerSocket.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/event/ServerSocket.hxx b/src/event/ServerSocket.hxx index 7c69225b3..6ad1ab8a3 100644 --- a/src/event/ServerSocket.hxx +++ b/src/event/ServerSocket.hxx @@ -109,6 +109,10 @@ public: */ void AddFD(int fd); + bool IsEmpty() const noexcept { + return sockets.empty(); + } + /** * Throws #std::runtime_error on error. */ -- cgit v1.2.3