Commit 64da9399 authored by Max Kellermann's avatar Max Kellermann

event/ServerSocket: allow mixing AddFD() with other Add*() methods

parent dd8e14e1
......@@ -207,6 +207,11 @@ ServerSocket::Open()
assert(i.GetSerial() > 0);
assert(good == nullptr || i.GetSerial() >= good->GetSerial());
if (i.IsDefined())
/* already open - was probably added by
AddFD() */
continue;
if (bad != nullptr && i.GetSerial() != bad->GetSerial()) {
Close();
std::rethrow_exception(last_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