([Port -invalidate]): Insist that is_valid is true at the beginning of

this method, don't test it and skip the body of this method.  Force
users to be careful about calling -invalidate more than once.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1088 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-07 02:30:04 +00:00
parent c6a9cf83d8
commit 0e774391ed

View file

@ -65,13 +65,12 @@
- (void) invalidate
{
if (is_valid)
{
[NotificationDispatcher
postNotificationName: PortBecameInvalidNotification
object: self];
is_valid = NO;
}
assert (is_valid);
[NotificationDispatcher
postNotificationName: PortBecameInvalidNotification
object: self];
is_valid = NO;
}
- (Class) packetClass