Commit 56bfff5a authored by Max Kellermann's avatar Max Kellermann

event/ServerSocket: add method IsEmpty()

parent 1d30df9b
......@@ -109,6 +109,10 @@ public:
*/
void AddFD(int fd);
bool IsEmpty() const noexcept {
return sockets.empty();
}
/**
* Throws #std::runtime_error on error.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment