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

This commit is contained in:
Max Kellermann 2020-12-04 09:23:56 +01:00
parent b27e82e4a9
commit b56c0e69e4

View File

@ -31,8 +31,9 @@
void
SocketEvent::Open(SocketDescriptor _fd) noexcept
{
assert(!fd.IsDefined());
assert(_fd.IsDefined());
assert(!fd.IsDefined());
assert(GetScheduledFlags() == 0);
fd = _fd;
}