mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 04:12:19 +00:00
([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:
parent
c6a9cf83d8
commit
0e774391ed
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue