diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-15 21:35:14 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-15 21:35:35 +0200 |
commit | 56bfff5a57f8ba971241b0ea035806c7574f54a3 (patch) | |
tree | 58ca63b85347edb453030e9946e90ee94f9c7d7b /src/event/ServerSocket.hxx | |
parent | 1d30df9b1567c36a1713a9f91a0f05d40d84d763 (diff) |
event/ServerSocket: add method IsEmpty()
Diffstat (limited to 'src/event/ServerSocket.hxx')
-rw-r--r-- | src/event/ServerSocket.hxx | 4 |
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. */ |