summaryrefslogtreecommitdiff
path: root/src/event/ServerSocket.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-15 21:35:14 +0200
committerMax Kellermann <max@musicpd.org>2018-07-15 21:35:35 +0200
commit56bfff5a57f8ba971241b0ea035806c7574f54a3 (patch)
tree58ca63b85347edb453030e9946e90ee94f9c7d7b /src/event/ServerSocket.hxx
parent1d30df9b1567c36a1713a9f91a0f05d40d84d763 (diff)
event/ServerSocket: add method IsEmpty()
Diffstat (limited to 'src/event/ServerSocket.hxx')
-rw-r--r--src/event/ServerSocket.hxx4
1 files changed, 4 insertions, 0 deletions
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.
*/