event/ServerSocket: pass UniqueSocketDescriptor to AddFD()

This commit is contained in:
Max Kellermann
2018-10-30 20:05:57 +01:00
parent 5fb21fbdb1
commit daffefdb10
3 changed files with 9 additions and 10 deletions

View File

@@ -107,7 +107,7 @@ public:
*
* Throws #std::runtime_error on error.
*/
void AddFD(int fd);
void AddFD(UniqueSocketDescriptor fd);
bool IsEmpty() const noexcept {
return sockets.empty();