event/SocketEvent: add another assert() to Open()
This commit is contained in:
parent
b27e82e4a9
commit
b56c0e69e4
@ -31,8 +31,9 @@
|
||||
void
|
||||
SocketEvent::Open(SocketDescriptor _fd) noexcept
|
||||
{
|
||||
assert(!fd.IsDefined());
|
||||
assert(_fd.IsDefined());
|
||||
assert(!fd.IsDefined());
|
||||
assert(GetScheduledFlags() == 0);
|
||||
|
||||
fd = _fd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user