Commit b56c0e69 authored by Max Kellermann's avatar Max Kellermann

event/SocketEvent: add another assert() to Open()

parent b27e82e4
......@@ -31,8 +31,9 @@
void
SocketEvent::Open(SocketDescriptor _fd) noexcept
{
assert(!fd.IsDefined());
assert(_fd.IsDefined());
assert(!fd.IsDefined());
assert(GetScheduledFlags() == 0);
fd = _fd;
}
......
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